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:
Michael Niedermayer 2022-11-06 11:29:38 +01:00
parent 3263185225
commit 8e59e72041
No known key found for this signature in database
GPG key ID: B18E8928B3948D64

View file

@ -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;