summaryrefslogtreecommitdiff
path: root/libavcodec/mimic.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-12-02 22:15:42 +0100
committerJanne Grunau <janne-libav@jannau.net>2012-12-05 00:02:44 +0100
commitc15fea7933b3801962851a37c3ef00ce968431c4 (patch)
treebc663a59c794c190601b16406b50f5206ac9b20f /libavcodec/mimic.c
parent42060c703011d742661c3f5df66b6f30358acd96 (diff)
downloadffmpeg-c15fea7933b3801962851a37c3ef00ce968431c4.tar.gz
mimic: initialize padding of swap_buf through av_fast_padded_malloc
Diffstat (limited to 'libavcodec/mimic.c')
-rw-r--r--libavcodec/mimic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c
index 8e35f9228c..95695de34c 100644
--- a/libavcodec/mimic.c
+++ b/libavcodec/mimic.c
@@ -370,8 +370,7 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data,
ff_thread_finish_setup(avctx);
- av_fast_malloc(&ctx->swap_buf, &ctx->swap_buf_size,
- swap_buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
+ av_fast_padded_malloc(&ctx->swap_buf, &ctx->swap_buf_size, swap_buf_size);
if(!ctx->swap_buf)
return AVERROR(ENOMEM);