Commit 7efd04d1 authored by michael's avatar michael

If consumed doesnt match nalsize favor nalsize.

Fixes issue385.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12430 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b62e085b
......@@ -7495,8 +7495,10 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size){
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;
......
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