[FFmpeg-cvslog] r17131 - trunk/libavcodec/aac.c

superdump subversion
Tue Feb 10 14:47:52 CET 2009


Author: superdump
Date: Tue Feb 10 14:47:50 2009
New Revision: 17131

Log:
Check sampling index validity for AAC decoding

Patch by Jai Menon ( jmenon86 gmail com )

Modified:
   trunk/libavcodec/aac.c

Modified: trunk/libavcodec/aac.c
==============================================================================
--- trunk/libavcodec/aac.c	Tue Feb 10 13:38:56 2009	(r17130)
+++ trunk/libavcodec/aac.c	Tue Feb 10 14:47:50 2009	(r17131)
@@ -1555,6 +1555,10 @@ static int aac_decode_frame(AVCodecConte
             av_log(avccontext, AV_LOG_ERROR, "Error decoding AAC frame header.\n");
             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;
+        }
     }
 
     // parse




More information about the ffmpeg-cvslog mailing list