[MPlayer-dev-eng] [PATCH] Skipped subtitles in first part of DVD

Olaf Mandel olaf at mandel.name
Sun Oct 1 09:11:41 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

if a DVD (or any MPEG?) is played back with subtitles, it can happen that
several of the first subtitles are not displayed. In mplayer this can be
corrected by seeking in the movie, but there is no workaround for
mencoder.

The problem is in the MPEG-demuxer in demux_mpg_open(), where repeated calls
to ds_fill_buffer(demuxer->video) not only fill the video stream, but
sometimes also the subtitle stream. These packets need to be removed from
the stream, otherwise all subtitles before the one from the forgotten
packet are dropped.

Something similar seems to happen in demux_seek_mpg(), but I have not seen
that bug and cannot say if the second added line in the patch is needed or
not. Could someone who knows the demuxer please look at it?

Thanks,
Olaf Mandel
- --
Olaf Mandel              eMail Olaf at Mandel.name


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFH2otmafSxjM5iEgRAsUuAJ9zTUOAJ3SagFWWay5Oz5Jc65JiPgCcC3JN
b+GTk6eMJ6e2C62o6fun8aA=
=IaVp
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch1
Type: application/octet-stream
Size: 868 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061001/88e257ba/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch1.sig.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061001/88e257ba/attachment.pgp>


More information about the MPlayer-dev-eng mailing list