1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00

Fix some subtitles that didn't show.

Sample: http://mplayerhq.hu/MPlayer/samples/sub/starwarssub2.vob


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15762 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-06-19 13:50:50 +00:00
parent 8aa19f12a0
commit c4e64232fd

View File

@ -503,10 +503,12 @@ void spudec_assemble(void *this, unsigned char *packet, unsigned int len, unsign
mp_msg(MSGT_SPUDEC,MSGL_WARN,"SPUasm: packet too short\n");
return;
}
#if 0
if ((spu->packet_pts + 10000) < pts100) {
// [cb] too long since last fragment: force new packet
spu->packet_offset = 0;
}
#endif
spu->packet_pts = pts100;
if (spu->packet_offset == 0) {
unsigned int len2 = get_be16(packet);