avcodec/vp3: Cleanup order of operations for current_run check
This shouldnt make a difference Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ca688de2c7
commit
dc4a621e9c
1 changed files with 1 additions and 1 deletions
|
|
@ -470,7 +470,7 @@ static int unpack_superblocks(Vp3DecodeContext *s, GetBitContext *gb)
|
|||
if (current_run == 34)
|
||||
current_run += get_bits(gb, 12);
|
||||
|
||||
if (current_superblock + current_run > s->superblock_count) {
|
||||
if (current_run > s->superblock_count - current_superblock) {
|
||||
av_log(s->avctx, AV_LOG_ERROR,
|
||||
"Invalid partially coded superblock run length\n");
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue