[FFmpeg-cvslog] mimic: initialize padding of swap_buf through av_fast_padded_malloc
Janne Grunau
git at videolan.org
Wed Dec 5 17:36:56 CET 2012
ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Sun Dec 2 22:15:42 2012 +0100| [c15fea7933b3801962851a37c3ef00ce968431c4] | committer: Janne Grunau
mimic: initialize padding of swap_buf through av_fast_padded_malloc
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c15fea7933b3801962851a37c3ef00ce968431c4
---
libavcodec/mimic.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c
index 8e35f92..95695de 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);
More information about the ffmpeg-cvslog
mailing list