[MPlayer-dev-eng] [PATCH] fix reordering

Dan Oscarsson Dan.Oscarsson at tieto.com
Sat Jun 26 08:44:02 CEST 2010


When seeking some demuxers (for example demux_ts.c) returns
MP_NOPTS_VALUE for first video frame after the seek. For the mpeg-ts
files I have -correct-pts hate to be set for them to play correctly.
Unfortunately the reordering code in libmpcodecs/dec_video.c ignores a
frame, if the pts have value MP_NOPTS_VALUE, resulting in one frame
being out of order in each set of frames after a seek. This gives bad
video playback.

As I have written in the patch, I cannot see that including
MP_NOPTS_VALUE in the reordering should be a problem, as it is a large
negative value (at least on my computers), and sorts before the
following frames.

   Dan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-reorder.diff
Type: text/x-patch
Size: 755 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100626/c26e6c3e/attachment.bin>


More information about the MPlayer-dev-eng mailing list