[FFmpeg-soc] [soc]: r1854 - aac/aac.c

andoma subversion at mplayerhq.hu
Thu Jan 31 14:54:30 CET 2008


Author: andoma
Date: Thu Jan 31 14:54:30 2008
New Revision: 1854

Log:
Gracefully bail out if 960 / 120 MDCT windows are used.


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Thu Jan 31 14:54:30 2008
@@ -310,7 +310,6 @@ typedef struct {
     int sample_rate;
     int ext_sample_rate;
     int channels;
-    int frame_length;
 
     // decoder param
     program_config_struct pcs;
@@ -614,11 +613,15 @@ static int program_config_element(AACCon
  */
 static int GASpecificConfig(AACContext * ac, GetBitContext * gb) {
     int ext = 0;
-    ac->frame_length = get_bits1(gb);
+
+    if(get_bits1(gb)) {  // frameLengthFlag
+        av_log(ac, AV_LOG_ERROR, "960/120 MDCT window is not supported");
+        return -1;
+    }
+
     if (get_bits1(gb))
         get_bits(gb, 14);
     ext = get_bits1(gb);
-    assert(ac->frame_length == 0);
     assert(ext == 0);
     if (ac->channels == 0)
         program_config_element(ac, gb);



More information about the FFmpeg-soc mailing list