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

michael subversion
Tue Dec 8 18:38:02 CET 2009


Author: michael
Date: Tue Dec  8 18:38:02 2009
New Revision: 20772

Log:
Reduce warnings about too few consumed bytes to debug level.
Fixes issue1061.

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Tue Dec  8 18:08:49 2009	(r20771)
+++ trunk/libavcodec/h264.c	Tue Dec  8 18:38:02 2009	(r20772)
@@ -7547,11 +7547,7 @@ static int decode_nal_units(H264Context 
         }
 
         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;



More information about the ffmpeg-cvslog mailing list