[FFmpeg-devel] [PATCH] Fix timestamp calculation when demuxing MP3 frames in a .avi container.

Mike Scheutzow mike.scheutzow at alcatel-lucent.com
Wed Jun 27 17:51:10 CEST 2012

The attached patch fixes trac 1432.

The bad code was using the frame byte length to calculate a timestamp,
which is completely broken. Also set AVPacket.duration, since demux is
already calculating it. The existing avi muxer already properly handles
the muxing and index creation for MP3 audio frames.  Fixes the sample
file in trac 1432.

Reviewer can commit.

Mike Scheutzow

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: avi-mp3-v1.patch
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120627/48d79d80/attachment.ksh>

More information about the ffmpeg-devel mailing list