mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/imc: Fix bitstream buffer padding
Fixes buffer overread Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
585047bb7d
commit
7444cf9a9c
|
@ -1018,7 +1018,7 @@ static int imc_decode_frame(AVCodecContext *avctx, void *data,
|
||||||
|
|
||||||
IMCContext *q = avctx->priv_data;
|
IMCContext *q = avctx->priv_data;
|
||||||
|
|
||||||
LOCAL_ALIGNED_16(uint16_t, buf16, [IMC_BLOCK_SIZE / 2]);
|
LOCAL_ALIGNED_16(uint16_t, buf16, [IMC_BLOCK_SIZE / 2 + FF_INPUT_BUFFER_PADDING_SIZE/2]);
|
||||||
|
|
||||||
if (buf_size < IMC_BLOCK_SIZE * avctx->channels) {
|
if (buf_size < IMC_BLOCK_SIZE * avctx->channels) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "frame too small!\n");
|
av_log(avctx, AV_LOG_ERROR, "frame too small!\n");
|
||||||
|
|
Loading…
Reference in New Issue