]> git.sesse.net Git - ffmpeg/commitdiff
AAC: Add a global header but output not locked output configuration status.
authorAlex Converse <alex.converse@gmail.com>
Wed, 2 Dec 2009 09:12:05 +0000 (09:12 +0000)
committerAlex Converse <alex.converse@gmail.com>
Wed, 2 Dec 2009 09:12:05 +0000 (09:12 +0000)
Originally committed as revision 20701 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/aac.c
libavcodec/aac.h

index ad5de7c5c76f5b3627c3b1a214172ba80e1fa72a..6b2c4169d73e601960f0038976c1599efb1ab170 100644 (file)
@@ -390,7 +390,7 @@ static int decode_ga_specific_config(AACContext *ac, GetBitContext *gb,
         if ((ret = set_default_channel_config(ac, new_che_pos, channel_config)))
             return ret;
     }
-    if ((ret = output_configure(ac, ac->che_pos, new_che_pos, channel_config, OC_LOCKED)))
+    if ((ret = output_configure(ac, ac->che_pos, new_che_pos, channel_config, OC_GLOBAL_HDR)))
         return ret;
 
     if (extension_flag) {
index bcfa9c7ee50bb93ab73e6f0b0e1412f754304ae4..3472a6163d35d706081c11f0d1121a137627bfab 100644 (file)
@@ -109,6 +109,7 @@ enum OCStatus {
     OC_NONE,        //< Output unconfigured
     OC_TRIAL_PCE,   //< Output configuration under trial specified by an inband PCE
     OC_TRIAL_FRAME, //< Output configuration under trial specified by a frame header
+    OC_GLOBAL_HDR,  //< Output configuration set in a global header but not yet locked
     OC_LOCKED,      //< Output configuration locked in place
 };