[MPlayer-dev-eng] [PATCH] reorder pts when needed

Dan Oscarsson Dan.Oscarsson at tieto.com
Sun Nov 27 18:13:44 CET 2011


sön 2011-11-27 klockan 16:03 +0100 skrev Reimar Döffinger:
> What do you consider "slightly bad" when out of order doesn't qualify?

The pts value is off by some milliseconds from correct value. Like some
demuxers/decoders do, for example som combinations of .avi and mp3 audio
where pts values goes + some time, and then - some time, around correct
value. That I can correct or reduce so mplayer do not have to move
display of frame forward/backward from correct time, all the time to
compensate for drifting pts values.
When pts values are out of order, they can jump around 100 ms or more.

> If it can handle actually corrupted pts values I'd expect it should
> handle reordering as well, at most hierarchical B might cause problems.

It is difficult to know if it is a corrupt pts value or a change in the
stream where a new sequence of pts value occur, so my code cannot
correct if the pts values jump around with big value changes (and by big
I mean about 70-100 ms or more.

  Dan




More information about the MPlayer-dev-eng mailing list