avcodec/bonk: actual_run seems not able to become negative

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2022-11-06 13:34:27 +01:00
parent 00b489b168
commit 5df8c300a9
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 1 additions and 2 deletions

View File

@ -184,8 +184,7 @@ static int intlist_read(BonkContext *s, int *buf, int entries, int base_2_part)
} else if (steplet > 0) {
int actual_run = read_uint_max(s, steplet - 1);
if (actual_run < 0)
break;
av_assert0(actual_run >= 0);
if (actual_run > 0) {
bits[x ].bit = dominant;