[FFmpeg-devel] ADTS parser in aac.c does not set samplerate

Andreas Öman andreas
Tue Dec 8 20:21:24 CET 2009

Alex Converse wrote:
> 2009/12/7 M?ns Rullg?rd <mans at mansr.com>:
>> Alex Converse <alex.converse at gmail.com> writes:
>>> On Mon, Dec 7, 2009 at 5:41 PM, Andreas ?man <andreas at lonelycoder.com> wrote:
>>>> Hi,
>>>> When decoding ADTS framed data directly with the AAC decoder
>>>> avctx->sample_rate is not set. The attached patch fixes
>>>> that.
>>> Doesn't the parser set that?
>> Suppose you're not using a parser.
> In the ObjectTypeIndication 0x67 case the sample rate comes from the
> container. Is there another case I'm missing?

Committed a variant where we only set samplerate if not already set
(as discussed on IRC)

More information about the ffmpeg-devel mailing list