[FFmpeg-soc] [soc]: r3103 - aac/aac.c
superdump
subversion at mplayerhq.hu
Sat Aug 9 23:43:23 CEST 2008
Author: superdump
Date: Sat Aug 9 23:43:23 2008
New Revision: 3103
Log:
Check parsed sampling_index is valid
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Sat Aug 9 23:43:23 2008
@@ -387,6 +387,10 @@ static int decode_audio_specific_config(
if((i = ff_mpeg4audio_get_config(&ac->m4ac, data, data_size)) < 0)
return -1;
+ if(ac->m4ac.sampling_index > 11) {
+ av_log(ac->avccontext, AV_LOG_ERROR, "invalid sampling rate index %d\n", ac->m4ac.sampling_index);
+ return -1;
+ }
skip_bits_long(&gb, i);
More information about the FFmpeg-soc
mailing list