diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-18 21:23:22 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-18 22:04:14 +0100 |
commit | e8b060f7e72f76e7d9e62ad4733201770cbe2bb5 (patch) | |
tree | 32ac21b9384eab9ac0f10674e30936af1f6de161 /libavcodec/mimic.c | |
parent | 126b04196e2a4af69644464b44d4b237185eff8e (diff) | |
download | ffmpeg-e8b060f7e72f76e7d9e62ad4733201770cbe2bb5.tar.gz |
Use av_fast_padded_malloc in mimic and truemotion2 decoders.
Fixes use of uninitialized data errors under valgrind.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/mimic.c')
-rw-r--r-- | libavcodec/mimic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c index 1cac84fc66..652dd1bb5d 100644 --- a/libavcodec/mimic.c +++ b/libavcodec/mimic.c @@ -367,8 +367,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); |