[MPlayer-dev-eng] [PATCH] reorder pts when needed
Dan Oscarsson
Dan.Oscarsson at tieto.com
Sun Nov 13 19:24:35 CET 2011
Do not know if this patch was lost but it is needed to get h264 data in
mpeg_ts demuxed streams to work correctly. Without it the pts values are
not in order. I suspect that h264 encoded data in other demuxers would
also not be in order without it.
It works fine for me and a friend who watches a lot of DVB-T streams.
If you want to split it into two parts, the if statement starting with:
+ // if many incomplete frames, keep only delay values
+ if (!got_picture && sh_video->num_buffered_pts >= delay)
could be separate as it is to fix so a sequence of bad frames do not
result in oldest pts value used for first valid frame. This can happen
in a DVB-T h264 stream which starts with a lot of partial frames.
If this is not good, we need to get pts values in order in some other
way to be able to play h264 in mpeg_ts good.
Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reorder.patch
Type: text/x-patch
Size: 1519 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20111113/fbf35e49/attachment.bin>
More information about the MPlayer-dev-eng
mailing list