avcodec/bonk: Remove special 32bit case from read_uint_max()

This case seems not to match the reference decoder and it also
seems not reachable

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

View File

@ -136,8 +136,7 @@ static unsigned read_uint_max(BonkContext *s, uint32_t max)
if (max == 0)
return 0;
if (max >> 31)
return 32;
av_assert0(max >> 31 == 0);
for (unsigned i = 1; i <= max - value; i+=i)
if (get_bits1(&s->gb))