avcodec/bonk: steplet cannot become negative
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
3263185225
commit
8e59e72041
1 changed files with 1 additions and 2 deletions
|
|
@ -169,8 +169,7 @@ static int intlist_read(BonkContext *s, int *buf, int entries, int base_2_part)
|
|||
return AVERROR_INVALIDDATA;
|
||||
|
||||
if (!get_bits1(&s->gb)) {
|
||||
if (steplet < 0)
|
||||
break;
|
||||
av_assert0(steplet >= 0);
|
||||
|
||||
if (steplet > 0) {
|
||||
bits[x ].bit = dominant;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue