diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-14 14:49:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-10 18:51:50 +0100 |
commit | ca8c3ec11b8ceb6d753176d5c04145cb83cbbe47 (patch) | |
tree | 64f8f94b0c8e3298bece999b82c1a31cfcabf78d | |
parent | 4e47ae4e716256cfe77f9bf63a3638395c4d57b5 (diff) | |
download | ffmpeg-ca8c3ec11b8ceb6d753176d5c04145cb83cbbe47.tar.gz |
wmalosslessdec: make mclms arrays big enough for whats written into them.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit a0abefb0af64a311b15141062c77dd577ba590a3)
Conflicts:
libavcodec/wmalosslessdec.c
-rw-r--r-- | libavcodec/wmalosslessdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index 3f23b66002..d6e5a1e2f8 100644 --- a/libavcodec/wmalosslessdec.c +++ b/libavcodec/wmalosslessdec.c @@ -240,9 +240,9 @@ typedef struct WmallDecodeCtx { int8_t mclms_scaling; int16_t mclms_coeffs[128]; int16_t mclms_coeffs_cur[4]; - int16_t mclms_prevvalues[64]; // FIXME: should be 32-bit / 16-bit depending on bit-depth - int16_t mclms_updates[64]; - int mclms_recent; + int16_t mclms_prevvalues[WMALL_MAX_CHANNELS * 2 * 32]; + int16_t mclms_updates[WMALL_MAX_CHANNELS * 2 * 32]; + int mclms_recent; int movave_scaling; int quant_stepsize; |