mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02: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:
committed by
Derek Buitenhuis
parent
a8097d32ae
commit
d1a7a20cb1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user