]> git.sesse.net Git - ffmpeg/commitdiff
mimic: initialize padding of swap_buf through av_fast_padded_malloc
authorJanne Grunau <janne-libav@jannau.net>
Sun, 2 Dec 2012 21:15:42 +0000 (22:15 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Tue, 4 Dec 2012 23:02:44 +0000 (00:02 +0100)
libavcodec/mimic.c

index 8e35f9228c8ec46e7ad50c11e52ab63d5c0d2e4e..95695de34c2f1dc770e8101f95a37eed366da9d5 100644 (file)
@@ -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);