Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-11-06 13:29:38 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2022-11-10 23:14:23 +0300
commit8e59e72041360240f60db9c04aecc2143102f0cc (patch)
tree58849fa212e0a13b3cff98ac026582209f37057f
parent32631852259a8aeb845c39ed7fa707c6e102c40a (diff)
avcodec/bonk: steplet cannot become negative
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/bonk.c3
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;