[FFmpeg-devel] [PATCH] Implement guessed_pts in avcodec_decode_video2.

Vladimir Pantelic vladoman
Mon Jan 31 19:30:57 CET 2011


Reimar D?ffinger wrote:
> On Mon, Jan 31, 2011 at 12:37:20PM +0000, M?ns Rullg?rd wrote:
>>  Jean-Daniel Dupas<devlists at shadowlab.org>  writes:
>>
>>  >  Le 30 janv. 2011 ? 20:39, M?ns Rullg?rd a ?crit :

>>  >  Try to play H.264 with reordered frame in avi container without this
>>  >  guess, and you will see why it is necessary.
>>
>>  AVI does not have timestamps (only an implied DTS), so the PTS would
>>  be calculated by counting decoded frames and multiplying by the frame
>>  rate.
>
> AVI has 0-size frames that are used to (very inefficiently) handle
> variable frame rate, your method certain will mess up timing completely
> for that case.

and do we have a sample of such a file to play with?




More information about the ffmpeg-devel mailing list