From 5897e9bd29edd5c41448256af04c9d813e94669e Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 7 May 2024 07:30:05 -0400 Subject: [PATCH] LibGfx/WebPLossless: Move around a spec comment That way, we don't need a comment that wasn't from the spec. No behavior change. --- Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.cpp b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.cpp index a5f719e8254..5ea1c164000 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.cpp @@ -940,7 +940,6 @@ ErrorOr> decode_webp_chunk_VP8L_contents(VP8LHeader const& auto stored_size = IntSize { vp8l_header.width, vp8l_header.height }; // optional-transform = (%b1 transform optional-transform) / %b0 - // "Each transform is allowed to be used only once." u8 seen_transforms = 0; Vector, 4> transforms; while (TRY(bit_stream.read_bits(1))) { @@ -964,7 +963,7 @@ ErrorOr> decode_webp_chunk_VP8L_contents(VP8LHeader const& TransformType transform_type = static_cast(TRY(bit_stream.read_bits(2))); dbgln_if(WEBP_DEBUG, "transform type {}", (int)transform_type); - // Check that each transform is used only once. + // "Each transform is allowed to be used only once." u8 mask = 1 << (int)transform_type; if (seen_transforms & mask) return Error::from_string_literal("WebPImageDecoderPlugin: transform type used multiple times");