Mercurial > libavcodec.hg
changeset 6490:bb799e3bc64b libavcodec
If consumed does not match nalsize, favor nalsize.
Fixes issue385.
author | michael |
---|---|
date | Thu, 13 Mar 2008 01:49:19 +0000 |
parents | 4d1efaedfae6 |
children | c8c58c35feef |
files | h264.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Thu Mar 13 00:20:15 2008 +0000 +++ b/h264.c Thu Mar 13 01:49:19 2008 +0000 @@ -7495,8 +7495,10 @@ 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); } - if (h->is_avc && (nalsize != consumed)) + if (h->is_avc && (nalsize != consumed)){ av_log(h->s.avctx, AV_LOG_ERROR, "AVC: Consumed only %d bytes instead of %d\n", consumed, nalsize); + consumed= nalsize; + } buf_index += consumed;