diff --git a/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp b/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp index 2cbfc1c043..a312280429 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp @@ -309,7 +309,6 @@ static ErrorOr> decode_webp_chunk_VP8L(WebPLoadingContext& { VERIFY(context.first_chunk->type == FourCC("VP8L") || context.first_chunk->type == FourCC("VP8X")); VERIFY(vp8l_chunk.type == FourCC("VP8L")); - auto vp8l_header = TRY(decode_webp_chunk_VP8L_header(vp8l_chunk.data)); return decode_webp_chunk_VP8L_contents(vp8l_header); } diff --git a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.h b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.h index d8e1ad8f41..76c17dcd36 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.h +++ b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.h @@ -19,7 +19,9 @@ struct VP8LHeader { ReadonlyBytes lossless_data; }; +// Parses the header data in a VP8L chunk. Pass the payload of a `VP8L` chunk, after the tag and after the tag's data size. ErrorOr decode_webp_chunk_VP8L_header(ReadonlyBytes vp8l_data); -ErrorOr> decode_webp_chunk_VP8L_contents(VP8LHeader const& vp8l_header); + +ErrorOr> decode_webp_chunk_VP8L_contents(VP8LHeader const&); }