[FFmpeg-devel] AAC decoder round 6
madshi
dear
Sat Aug 9 19:16:36 CEST 2008
Robert Swain schrieb:
> $subj
>
> Regards,
> Rob
>
> ac->m4ac.sampling_index = get_bits(gb, 4);
> if(ac->m4ac.sampling_index > 12) {
> av_log(ac->avccontext, AV_LOG_ERROR, "invalid sampling rate index
%d\n", ac->m4ac.sampling_index);
> return -1;
> }
> ac->m4ac.sample_rate =
ff_mpeg4audio_sample_rates[ac->m4ac.sampling_index];
The valid sampling rate indexes are from 0..11.
So shouldn't it be "if(ac->m4ac.sampling_index > 11)"?
Regards, madshi.
More information about the ffmpeg-devel
mailing list