[MPlayer-dev-eng] [PATCH] Fix for mpeg2 A/V sync bug.
Steaphan Greene
sgreene at cs.binghamton.edu
Fri Jun 24 15:30:57 CEST 2011
The attached patch fixes the bug with vob files (and, presumably other
mpeg2 content) caused by the A/V sync code added with r32055/32056. I
believe this solution should cause no other harm.
Basically, it now just removes the last_pts data when one of these pts
changes occurs in the mpeg2 stream. That way, the A/V resync code in
question ignores this frame, and no longer breaks anything.
It seems likely that this same sort change may be needed for other cases
where the pts is non-uniform, to prevent this resync from causing this
same problem. However, I leave that to someone who understands all
these cases better than I. For my part, I am fairly confident that this
fixes the bug I found, without damaging anything else.
--
Steaphan Greene <sgreene at cs.binghamton.edu>
Lecturer, Computer Science, Binghamton University
GPG public key: http://www.cs.binghamton.edu/~sgreene/gpg.key.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer_mpeg2_sync_failure_fix.patch
Type: text/x-patch
Size: 633 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20110624/11a50cc3/attachment.bin>
More information about the MPlayer-dev-eng
mailing list