mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
Reduce warnings about too few consumed bytes to debug level.
Fixes issue1061. Originally committed as revision 20772 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e87eb039cc
commit
e262365d7c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user