Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-04 14:25:31 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-05-04 15:31:45 +0300
commit3dfbdb328ed9e88cebc6462c56cfe61e55850b2e (patch)
treee165e0d02aabdeff6138df12ee2512d635d8ee63 /libavcodec/ffv1dec.c
parenteb9fb508b0e09d85d234fe694333b2005e1d7a7e (diff)
avcodec/ffv1dec: Check quant table symbols more completely
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1dec.c')
-rw-r--r--libavcodec/ffv1dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index 78d947ace3..621aac7bdb 100644
--- a/libavcodec/ffv1dec.c
+++ b/libavcodec/ffv1dec.c
@@ -476,7 +476,7 @@ static int read_quant_table(RangeCoder *c, int16_t *quant_table, int scale)
for (v = 0; i < 128; v++) {
unsigned len = get_symbol(c, state, 0) + 1;
- if (len > 128 - i)
+ if (len > 128 - i || !len)
return AVERROR_INVALIDDATA;
while (len--) {