[FFmpeg-cvslog] avcodec/bonk: steplet cannot become negative

Michael Niedermayer git at videolan.org
Thu Nov 10 22:15:51 EET 2022


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Nov  6 11:29:38 2022 +0100| [8e59e72041360240f60db9c04aecc2143102f0cc] | committer: Michael Niedermayer

avcodec/bonk: steplet cannot become negative

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8e59e72041360240f60db9c04aecc2143102f0cc
---

 libavcodec/bonk.c | 3 +--
 1 file changed, 1 insertion(+), 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;



More information about the ffmpeg-cvslog mailing list