[FFmpeg-devel] [PATCH] avi set block align if not set

Baptiste Coudurier baptiste.coudurier
Mon Sep 8 02:39:59 CEST 2008

Michael Niedermayer wrote:
> On Thu, Sep 04, 2008 at 07:36:23PM -0700, Baptiste Coudurier wrote:
>> Hi,
>> $subject, problem is if block align is not set rate and scale will be
>> wrongly set for uncompressed audio (causing A/V desync) in
>> ff_parse_specific_params, and packets will be duplicated heavily in
>> avi_write_packet. Maybe there is a better place to put this code I don't
>> know.
> i guess you could just put your code in av_write_header() that way all
> muxers have the corrected block_align

Patch attached.

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Smartjog USA Inc.                                http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: set_block_align.patch
Type: text/x-diff
Size: 648 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080907/11fc8a12/attachment.patch>

More information about the ffmpeg-devel mailing list