From d1a7a20cb130e1028b7bf3a59ec3b02cfad169da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Zumer?= Date: Fri, 22 Aug 2025 12:44:09 -0400 Subject: [PATCH] avcodec/webp: fix incorrectly returning AVERROR_INVALIDDATA when building Huffman reader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This corrects an error in commit c33f16d. Signed-off-by: Raphaƫl Zumer --- libavcodec/webp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/webp.c b/libavcodec/webp.c index 0dca130ff3..92179ad282 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -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;