diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-14 14:49:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-14 14:49:51 +0200 |
commit | a0abefb0af64a311b15141062c77dd577ba590a3 (patch) | |
tree | 217da3989e04c80ec23c4983a84e0563bc210f80 /libavcodec/wmalosslessdec.c | |
parent | d442c4462a2692e27a24e1a9d0eb6f18725c7bd8 (diff) | |
download | ffmpeg-a0abefb0af64a311b15141062c77dd577ba590a3.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>
Diffstat (limited to 'libavcodec/wmalosslessdec.c')
-rw-r--r-- | libavcodec/wmalosslessdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index 374dc7464c..1904a1c625 100644 --- a/libavcodec/wmalosslessdec.c +++ b/libavcodec/wmalosslessdec.c @@ -126,8 +126,8 @@ typedef struct WmallDecodeCtx { int8_t mclms_scaling; int16_t mclms_coeffs[128]; int16_t mclms_coeffs_cur[4]; - int16_t mclms_prevvalues[64]; - int16_t mclms_updates[64]; + int16_t mclms_prevvalues[WMALL_MAX_CHANNELS * 2 * 32]; + int16_t mclms_updates[WMALL_MAX_CHANNELS * 2 * 32]; int mclms_recent; int movave_scaling; |