|
|
@ -191,7 +191,7 @@ static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels, |
|
|
|
continue; /* skip vector */ |
|
|
|
continue; /* skip vector */ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (stages > 0 && level >= 4) { |
|
|
|
if ((stages > 0 && level >= 4) || stages < 0) { |
|
|
|
av_dlog(NULL, |
|
|
|
av_dlog(NULL, |
|
|
|
"Error (svq1_decode_block_intra): invalid vector: stages=%i level=%i\n", |
|
|
|
"Error (svq1_decode_block_intra): invalid vector: stages=%i level=%i\n", |
|
|
|
stages, level); |
|
|
|
stages, level); |
|
|
@ -253,7 +253,7 @@ static int svq1_decode_block_non_intra(GetBitContext *bitbuf, uint8_t *pixels, |
|
|
|
if (stages == -1) |
|
|
|
if (stages == -1) |
|
|
|
continue; /* skip vector */ |
|
|
|
continue; /* skip vector */ |
|
|
|
|
|
|
|
|
|
|
|
if ((stages > 0) && (level >= 4)) { |
|
|
|
if ((stages > 0 && level >= 4) || stages < 0) { |
|
|
|
av_dlog(NULL, |
|
|
|
av_dlog(NULL, |
|
|
|
"Error (svq1_decode_block_non_intra): invalid vector: stages=%i level=%i\n", |
|
|
|
"Error (svq1_decode_block_non_intra): invalid vector: stages=%i level=%i\n", |
|
|
|
stages, level); |
|
|
|
stages, level); |
|
|
|