mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/webp: Replace never-true check by assert
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
548f1a3fa4
commit
8b1bb4f38e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue