[FFmpeg-cvslog] r17327 - trunk/libavcodec/h264.c

cehoyos subversion
Sun Feb 15 16:23:02 CET 2009


Author: cehoyos
Date: Sun Feb 15 16:23:02 2009
New Revision: 17327

Log:
Silence following warning if only zeros were not consumed:
AVC: Consumed only m bytes instead of n

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Sun Feb 15 15:34:23 2009	(r17326)
+++ trunk/libavcodec/h264.c	Sun Feb 15 16:23:02 2009	(r17327)
@@ -7418,7 +7418,11 @@ static int decode_nal_units(H264Context 
         }
 
         if (h->is_avc && (nalsize != consumed)){
-            av_log(h->s.avctx, AV_LOG_ERROR, "AVC: Consumed only %d bytes instead of %d\n", 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);
             consumed= nalsize;
         }
 




More information about the ffmpeg-cvslog mailing list