aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bonk.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-11-06 13:34:27 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2022-11-14 21:52:51 +0100
commit5df8c300a915cd0fa1f337ce36957624593928df (patch)
treed020e3fe9e60dca41aa5aec7f3911259a5d2b05c /libavcodec/bonk.c
parent00b489b168f20a25ce901c6068e1727edf58d612 (diff)
downloadffmpeg-5df8c300a915cd0fa1f337ce36957624593928df.tar.gz
avcodec/bonk: actual_run seems not able to become negative
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/bonk.c')
-rw-r--r--libavcodec/bonk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/bonk.c b/libavcodec/bonk.c
index 38dae60be7..1a7a063c0d 100644
--- a/libavcodec/bonk.c
+++ b/libavcodec/bonk.c
@@ -184,8 +184,7 @@ static int intlist_read(BonkContext *s, int *buf, int entries, int base_2_part)
} else if (steplet > 0) {
int actual_run = read_uint_max(s, steplet - 1);
- if (actual_run < 0)
- break;
+ av_assert0(actual_run >= 0);
if (actual_run > 0) {
bits[x ].bit = dominant;