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

Attila Kinali attila at kinali.ch
Thu Jul 1 17:59:16 CEST 2010


On Sat, 26 Jun 2010 08:44:02 +0200
Dan Oscarsson <Dan.Oscarsson at tieto.com> wrote:

> 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.

Any comments on this patch?
It seems simple and the explanation makes sense, but i have too
little knowledge to judge the implications.

			Attila Kinali

-- 
If you want to walk fast, walk alone.
If you want to walk far, walk together.
		-- African proverb



More information about the MPlayer-dev-eng mailing list