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

Dan Oscarsson Dan.Oscarsson at tieto.com
Thu Nov 24 12:40:09 CET 2011


sön 2011-11-13 klockan 19:24 +0100 skrev Dan Oscarsson:
> 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.

Nobody interested in getting this fixed?

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




More information about the MPlayer-dev-eng mailing list