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

Hendrik Leppkes h.leppkes at gmail.com
Thu Jun 21 09:53:08 CEST 2012


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.

- Hendrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aac-move-sample_fmt-selection.patch
Type: application/octet-stream
Size: 1626 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120621/ff1e55cf/attachment.obj>


More information about the ffmpeg-devel mailing list