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

superdump subversion at mplayerhq.hu
Sun Aug 10 22:51:52 CEST 2008


Author: superdump
Date: Sun Aug 10 22:51:52 2008
New Revision: 3158

Log:
Use new av_log_missing_feature() function for unsupported feature messages


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Sun Aug 10 22:51:52 2008
@@ -324,7 +324,7 @@ static int decode_ga_specific_config(AAC
     int extension_flag, ret;
 
     if(get_bits1(gb)) {  // frameLengthFlag
-        av_log(ac->avccontext, AV_LOG_ERROR, "960/120 MDCT window is not supported.\n");
+        av_log_missing_feature(ac->avccontext, "960/120 MDCT window is", 1);
         return -1;
     }
 
@@ -585,8 +585,7 @@ static int decode_ics_info(AACContext * 
                 }
             }
 #else /* AAC_LTP */
-            av_log(ac->avccontext, AV_LOG_ERROR,
-                   "Predictor bit set but LTP is not supported.\n");
+            av_log_missing_feature(ac->avccontext, "Predictor bit set but LTP is", 1);
             return -1;
 #endif /* AAC_LTP */
 #ifdef AAC_LTP
@@ -1005,7 +1004,7 @@ static int decode_ics(AACContext * ac, S
             int ret;
             if ((ret = decode_gain_control(sce, gb))) return ret;
 #else
-            av_log(ac->avccontext, AV_LOG_ERROR, "SSR not supported.\n");
+            av_log_missing_feature(ac->avccontext, "SSR", 1);
             return -1;
 #endif
         }
@@ -1213,7 +1212,7 @@ static int decode_cce(AACContext * ac, G
  */
 static int decode_sbr_extension(AACContext * ac, GetBitContext * gb, int crc, int cnt) {
     // TODO : sbr_extension implementation
-    av_log(ac->avccontext, AV_LOG_DEBUG, "aac: SBR not yet supported.\n");
+    av_log_missing_feature(ac->avccontext, "SBR", 0);
     skip_bits_long(gb, 8*cnt - 4); // -4 due to reading extension type
     return cnt;
 }



More information about the FFmpeg-soc mailing list