diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-11-06 11:29:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-11-10 21:14:23 +0100 |
commit | 8e59e72041360240f60db9c04aecc2143102f0cc (patch) | |
tree | 58849fa212e0a13b3cff98ac026582209f37057f /libavcodec/bonk.c | |
parent | 32631852259a8aeb845c39ed7fa707c6e102c40a (diff) | |
download | ffmpeg-8e59e72041360240f60db9c04aecc2143102f0cc.tar.gz |
avcodec/bonk: steplet cannot become negative
Reviewed-by: Paul B Mahol <onemda@gmail.com>
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 b56a940681..e825a40d79 100644 --- a/libavcodec/bonk.c +++ b/libavcodec/bonk.c @@ -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; |