[FFmpeg-devel] [PATCH] aac: move sample_fmt selection before decoder configuration.

Michael Niedermayer michaelni at gmx.at
Thu Jun 21 13:22:48 CEST 2012

On Thu, Jun 21, 2012 at 09:53:08AM +0200, Hendrik Leppkes wrote:
> Hi,
> attached patch fixes an issue with the AAC decoder and request_sample_fmt
> == AV_SAMPLE_FMT_FLT in certain situations.
> The block handling request_sample_fmt has to be executed before the decoder
> configuration, because the sbr mdct initialization requires the information
> which sample format is selected to properly configure the scale factors.
> Without this fix, this can result in just noise when playing a 5.1 AAC file
> with request_sample_fmt = AV_SAMPLE_FMT_FLT.
> Feedback welcome.

patch applied



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120621/b64377e7/attachment.asc>

More information about the ffmpeg-devel mailing list