diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-11-06 13:34:26 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-11-14 21:52:51 +0100 |
commit | 00b489b168f20a25ce901c6068e1727edf58d612 (patch) | |
tree | c204a7258fede7a93eadae6a960b333ece34c264 /libavcodec/bonk.c | |
parent | 3ab11dc5bb6eec9b645da45fe28b1b2c29e92eed (diff) | |
download | ffmpeg-00b489b168f20a25ce901c6068e1727edf58d612.tar.gz |
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>
Diffstat (limited to 'libavcodec/bonk.c')
-rw-r--r-- | libavcodec/bonk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/bonk.c b/libavcodec/bonk.c index e825a40d79..38dae60be7 100644 --- a/libavcodec/bonk.c +++ b/libavcodec/bonk.c @@ -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)) |