[Ffmpeg-cvslog] r7330 - trunk/libavcodec/amr.c

bcoudurier subversion
Mon Dec 18 14:45:04 CET 2006


Author: bcoudurier
Date: Mon Dec 18 14:45:03 2006
New Revision: 7330

Modified:
   trunk/libavcodec/amr.c

Log:
always print message when error, AV_LOG_DEBUG -> AV_LOG_ERROR

Modified: trunk/libavcodec/amr.c
==============================================================================
--- trunk/libavcodec/amr.c	(original)
+++ trunk/libavcodec/amr.c	Mon Dec 18 14:45:03 2006
@@ -186,19 +186,13 @@
 
     if(avctx->sample_rate!=8000)
     {
-        if(avctx->debug)
-        {
-            av_log(avctx, AV_LOG_DEBUG, "Only 8000Hz sample rate supported\n");
-        }
+        av_log(avctx, AV_LOG_ERROR, "Only 8000Hz sample rate supported\n");
         return -1;
     }
 
     if(avctx->channels!=1)
     {
-        if(avctx->debug)
-        {
-            av_log(avctx, AV_LOG_DEBUG, "Only mono supported\n");
-        }
+        av_log(avctx, AV_LOG_ERROR, "Only mono supported\n");
         return -1;
     }
 
@@ -207,10 +201,7 @@
 
     if(Speech_Encode_Frame_init(&s->enstate, 0, "encoder") || sid_sync_init (&s->sidstate))
     {
-        if(avctx->debug)
-        {
-            av_log(avctx, AV_LOG_DEBUG, "Speech_Encode_Frame_init error\n");
-        }
+        av_log(avctx, AV_LOG_ERROR, "Speech_Encode_Frame_init error\n");
         return -1;
     }
 
@@ -392,19 +383,13 @@
 
     if(avctx->sample_rate!=8000)
     {
-        if(avctx->debug)
-        {
-            av_log(avctx, AV_LOG_DEBUG, "Only 8000Hz sample rate supported\n");
-        }
+        av_log(avctx, AV_LOG_ERROR, "Only 8000Hz sample rate supported\n");
         return -1;
     }
 
     if(avctx->channels!=1)
     {
-        if(avctx->debug)
-        {
-            av_log(avctx, AV_LOG_DEBUG, "Only mono supported\n");
-        }
+        av_log(avctx, AV_LOG_ERROR, "Only mono supported\n");
         return -1;
     }
 
@@ -414,10 +399,7 @@
     s->enstate=Encoder_Interface_init(0);
     if(!s->enstate)
     {
-        if(avctx->debug)
-        {
-            av_log(avctx, AV_LOG_DEBUG, "Encoder_Interface_init error\n");
-        }
+        av_log(avctx, AV_LOG_ERROR, "Encoder_Interface_init error\n");
         return -1;
     }
 
@@ -587,19 +569,13 @@
 
     if(avctx->sample_rate!=16000)
     {
-        if(avctx->debug)
-        {
-            av_log(avctx, AV_LOG_DEBUG, "Only 16000Hz sample rate supported\n");
-        }
+        av_log(avctx, AV_LOG_ERROR, "Only 16000Hz sample rate supported\n");
         return -1;
     }
 
     if(avctx->channels!=1)
     {
-        if(avctx->debug)
-        {
-            av_log(avctx, AV_LOG_DEBUG, "Only mono supported\n");
-        }
+        av_log(avctx, AV_LOG_ERROR, "Only mono supported\n");
         return -1;
     }
 




More information about the ffmpeg-cvslog mailing list