[FFmpeg-devel] [PATCH] check sampling index validity when parsing adts frame header

Baptiste Coudurier baptiste.coudurier
Mon Feb 9 09:21:32 CET 2009


Hi Jai,

Jai Menon wrote:
> Hi,
> 
> On Mon, Feb 9, 2009 at 12:41 PM, Alex Converse <alex.converse at gmail.com> wrote:
>>> Index: libavcodec/aac.c
>>> ===================================================================
>>> --- libavcodec/aac.c  (revision 16998)
>>> +++ libavcodec/aac.c  (working copy)
>>> @@ -1529,6 +1529,11 @@
>>>          if (hdr_info.chan_config)
>>>              ac->m4ac.chan_config = hdr_info.chan_config;
>>>          ac->m4ac.sample_rate     = hdr_info.sample_rate;
>>> +
>>> +        if(hdr_info.sampling_index > 11) {
>> 12 is a valid sampling index. It corresponds to 7350 Hz.
> 
> Shouldn't it be in the table then?
> 

Isn't it ? check mpeg4audio.c

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer                                  http://www.ffmpeg.org




More information about the ffmpeg-devel mailing list