Browse Source

avcodec/ffv1dec: Check quant table symbols more completely

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
3dfbdb328e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/ffv1dec.c

+ 1
- 1
libavcodec/ffv1dec.c View File

@@ -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--) {


Loading…
Cancel
Save