Commit 3ba10502 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/imc: dont read bits beyond the end

Fixes use of uninitialized memory
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ddd7dac7
......@@ -808,8 +808,7 @@ static void imc_get_coeffs(AVCodecContext *avctx,
av_log(avctx, AV_LOG_WARNING,
"Potential problem on band %i, coefficient %i"
": cw_len=%i\n", i, j, cw_len);
}
} else
cw = get_bits(&q->gb, cw_len);
}
......
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