mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/webp: fix incorrectly returning AVERROR_INVALIDDATA when building Huffman reader
This corrects an error in commit c33f16d.
Signed-off-by: Raphaël Zumer <rzumer@tebako.net>
This commit is contained in:
parent
a8097d32ae
commit
d1a7a20cb1
1 changed files with 1 additions and 0 deletions
|
|
@ -281,6 +281,7 @@ static int huff_reader_build_canonical(HuffReader *r, const uint8_t *code_length
|
|||
r->nb_symbols = 1;
|
||||
r->simple = 1;
|
||||
r->simple_symbols[0] = syms[0];
|
||||
return 0;
|
||||
}
|
||||
// No symbols
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue