summaryrefslogtreecommitdiff
path: root/libavcodec/wma.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-11-30 16:46:46 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-12-28 11:20:48 +0100
commitbf5c850b795126d4f60dd9498c06f0492f5726a7 (patch)
tree15c1772fe3a5e26a013498934ee3e45bd921994f /libavcodec/wma.h
parentf1b97f62f86d5dca35d01d7a5ebbc5dca2a88ae6 (diff)
avcodec/wmadec: Keep track of exponent initialization per channel
Fixes: division by 0 Fixes: 19123/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAV2_fuzzer-5655493121146880 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/wma.h')
-rw-r--r--libavcodec/wma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wma.h b/libavcodec/wma.h
index 8344cb5b93..c7fcf5047c 100644
--- a/libavcodec/wma.h
+++ b/libavcodec/wma.h
@@ -123,7 +123,7 @@ typedef struct WMACodecContext {
uint8_t last_superframe[MAX_CODED_SUPERFRAME_SIZE + AV_INPUT_BUFFER_PADDING_SIZE]; /* padding added */
int last_bitoffset;
int last_superframe_len;
- int exponents_initialized;
+ int exponents_initialized[MAX_CHANNELS];
float noise_table[NOISE_TAB_SIZE];
int noise_index;
float noise_mult; /* XXX: suppress that and integrate it in the noise array */