summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-12-08 17:38:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-12-08 17:38:02 +0000
commite262365d7c84203028b5da5265ffc6b27ac33be8 (patch)
tree1b576cb2982f1d7ec555e9786131ef7e1683edd2 /libavcodec/h264.c
parente87eb039cc35ed432ad93691427a5f3bedb4d620 (diff)
Reduce warnings about too few consumed bytes to debug level.
Fixes issue1061. Originally committed as revision 20772 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 1bfb1e2f25..058ee42a82 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7547,11 +7547,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size){
}
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;