From c15fea7933b3801962851a37c3ef00ce968431c4 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Sun, 2 Dec 2012 22:15:42 +0100 Subject: mimic: initialize padding of swap_buf through av_fast_padded_malloc --- libavcodec/mimic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/mimic.c') 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); -- cgit v1.2.3