summaryrefslogtreecommitdiff
path: root/libavcodec/imc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-23 01:34:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-23 01:34:28 +0200
commit7444cf9a9c0b8b2bba8198af2823521c654a48f4 (patch)
tree7a41db02ca305e84cdef9d1b9e2e09a6caf81b05 /libavcodec/imc.c
parent585047bb7dae67a366734db0845529add764f3b9 (diff)
downloadffmpeg-7444cf9a9c0b8b2bba8198af2823521c654a48f4.tar.gz
avcodec/imc: Fix bitstream buffer padding
Fixes buffer overread Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/imc.c')
-rw-r--r--libavcodec/imc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imc.c b/libavcodec/imc.c
index 0df0dd1a68..2a5eac9b7c 100644
--- a/libavcodec/imc.c
+++ b/libavcodec/imc.c
@@ -1018,7 +1018,7 @@ static int imc_decode_frame(AVCodecContext *avctx, void *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) {
av_log(avctx, AV_LOG_ERROR, "frame too small!\n");