changeset 10656:34911596ffed libavcodec

Reduce warnings about too few consumed bytes to debug level. Fixes issue1061.
author michael
date Tue, 08 Dec 2009 17:38:02 +0000
parents 0a2d577dd2d8
children 168ea860d58f
files h264.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Mon Dec 07 21:06:51 2009 +0000
+++ b/h264.c	Tue Dec 08 17:38:02 2009 +0000
@@ -7547,11 +7547,7 @@
         }
 
         if (h->is_avc && (nalsize != consumed) && nalsize){
-            int i, debug_level = AV_LOG_DEBUG;
-            for (i = consumed; i < nalsize; i++)
-                if (buf[buf_index+i])
-                    debug_level = AV_LOG_ERROR;
-            av_log(h->s.avctx, debug_level, "AVC: Consumed only %d bytes instead of %d\n", consumed, nalsize);
+            av_log(h->s.avctx, AV_LOG_DEBUG, "AVC: Consumed only %d bytes instead of %d\n", consumed, nalsize);
         }
 
         buf_index += consumed;