diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-17 22:20:23 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-18 21:22:01 +0100 |
commit | f9ced97543daf4a34a31bc4d5b1cd898ded11abd (patch) | |
tree | 29fc02d34b9f51568d494ead70198dcdf653d95a /libavcodec/fraps.c | |
parent | 4259d1eb99bf74e75806e0f460a1e099cce81e2d (diff) | |
download | ffmpeg-f9ced97543daf4a34a31bc4d5b1cd898ded11abd.tar.gz |
Use av_fast_padded_malloc in fraps and mpc decoders.
Fixes FATE failures due to uninitialized reads under valgrind
for these two codecs.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r-- | libavcodec/fraps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index de98da72ea..8a47aee456 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -277,7 +277,7 @@ static int decode_frame(AVCodecContext *avctx, offs[planes] = buf_size; for(i = 0; i < planes; i++){ is_chroma = !!i; - av_fast_malloc(&s->tmpbuf, &s->tmpbuf_size, offs[i + 1] - offs[i] - 1024 + FF_INPUT_BUFFER_PADDING_SIZE); + av_fast_padded_malloc(&s->tmpbuf, &s->tmpbuf_size, offs[i + 1] - offs[i] - 1024); if (!s->tmpbuf) return AVERROR(ENOMEM); if(fraps2_decode_plane(s, f->data[i], f->linesize[i], avctx->width >> is_chroma, |