Commit 90ee2f95 authored by michael's avatar michael

Reduce warnings about too few consumed bytes to debug level.

Fixes issue1061.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20772 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ca89fa71
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment