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/mpc.h | |
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/mpc.h')
-rw-r--r-- | libavcodec/mpc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpc.h b/libavcodec/mpc.h index 8b4deef689..808739fcc9 100644 --- a/libavcodec/mpc.h +++ b/libavcodec/mpc.h @@ -66,6 +66,8 @@ typedef struct { int buf_size; AVLFG rnd; int frames_to_skip; + uint8_t *buffer; + int buffer_size; /* for synthesis */ DECLARE_ALIGNED(16, MPA_INT, synth_buf)[MPA_MAX_CHANNELS][512*2]; int synth_buf_offset[MPA_MAX_CHANNELS]; |