mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
avcodec/imc: dont read bits beyond the end
Fixes use of uninitialized memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ddd7dac7ae
commit
3ba1050292
@ -808,9 +808,8 @@ static void imc_get_coeffs(AVCodecContext *avctx,
|
|||||||
av_log(avctx, AV_LOG_WARNING,
|
av_log(avctx, AV_LOG_WARNING,
|
||||||
"Potential problem on band %i, coefficient %i"
|
"Potential problem on band %i, coefficient %i"
|
||||||
": cw_len=%i\n", i, j, cw_len);
|
": cw_len=%i\n", i, j, cw_len);
|
||||||
}
|
} else
|
||||||
|
cw = get_bits(&q->gb, cw_len);
|
||||||
cw = get_bits(&q->gb, cw_len);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
chctx->codewords[j] = cw;
|
chctx->codewords[j] = cw;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user