Signed-off-by: Andreas Rheinhardt <[email protected]>
---
libavcodec/webp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/webp.c b/libavcodec/webp.c
index 549d125dcc..6de6a5c036 100644
--- a/libavcodec/webp.c
+++ b/libavcodec/webp.c
@@ -329,8 +329,7 @@ static int read_huffman_code_normal(WebPContext *s,
HuffReader *hc,
int i, symbol, max_symbol, prev_code_len, ret;
int num_codes = 4 + get_bits(&s->gb, 4);
- if (num_codes > NUM_CODE_LENGTH_CODES)
- return AVERROR_INVALIDDATA;
+ av_assert1(num_codes <= NUM_CODE_LENGTH_CODES);
for (i = 0; i < num_codes; i++)
code_length_code_lengths[code_length_code_order[i]] = get_bits(&s->gb,
3);
--
2.25.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".