Mercurial > libavcodec.hg
comparison h264.c @ 10656:34911596ffed libavcodec
Reduce warnings about too few consumed bytes to debug level.
Fixes issue1061.
author | michael |
---|---|
date | Tue, 08 Dec 2009 17:38:02 +0000 |
parents | 26dc0444fa93 |
children | dc61c373810e |
comparison
equal
deleted
inserted
replaced
10655:0a2d577dd2d8 | 10656:34911596ffed |
---|---|
7545 if(s->avctx->debug&FF_DEBUG_STARTCODE){ | 7545 if(s->avctx->debug&FF_DEBUG_STARTCODE){ |
7546 av_log(h->s.avctx, AV_LOG_DEBUG, "NAL %d at %d/%d length %d\n", hx->nal_unit_type, buf_index, buf_size, dst_length); | 7546 av_log(h->s.avctx, AV_LOG_DEBUG, "NAL %d at %d/%d length %d\n", hx->nal_unit_type, buf_index, buf_size, dst_length); |
7547 } | 7547 } |
7548 | 7548 |
7549 if (h->is_avc && (nalsize != consumed) && nalsize){ | 7549 if (h->is_avc && (nalsize != consumed) && nalsize){ |
7550 int i, debug_level = AV_LOG_DEBUG; | 7550 av_log(h->s.avctx, AV_LOG_DEBUG, "AVC: Consumed only %d bytes instead of %d\n", consumed, nalsize); |
7551 for (i = consumed; i < nalsize; i++) | |
7552 if (buf[buf_index+i]) | |
7553 debug_level = AV_LOG_ERROR; | |
7554 av_log(h->s.avctx, debug_level, "AVC: Consumed only %d bytes instead of %d\n", consumed, nalsize); | |
7555 } | 7551 } |
7556 | 7552 |
7557 buf_index += consumed; | 7553 buf_index += consumed; |
7558 | 7554 |
7559 if( (s->hurry_up == 1 && h->nal_ref_idc == 0) //FIXME do not discard SEI id | 7555 if( (s->hurry_up == 1 && h->nal_ref_idc == 0) //FIXME do not discard SEI id |