From 3c39c184404ede41166b8a8378d183ce7a79e02c Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 26 Dec 2023 19:24:46 -0500 Subject: [PATCH] LibGfx/JPEG: Add spec comment to read_start_of_frame() --- Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp b/Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp index 89662c8461..7c3db04fd4 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp @@ -1240,6 +1240,8 @@ static ErrorOr read_start_of_frame(JPEGStream& stream, JPEGLoadingContext& return Error::from_string_literal("SOF repeated"); } + // B.2.2 Frame header syntax + [[maybe_unused]] u16 const bytes_to_read = TRY(read_effective_chunk_size(stream)); context.frame.precision = TRY(stream.read_u8());