mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +00:00
LibGfx/JPEG: Add spec comment to read_start_of_frame()
This commit is contained in:
parent
89da988da1
commit
3c39c18440
Notes:
sideshowbarker
2024-07-16 17:12:03 +09:00
Author: https://github.com/nico
Commit: 3c39c18440
Pull-request: https://github.com/SerenityOS/serenity/pull/22454
1 changed files with 2 additions and 0 deletions
|
@ -1240,6 +1240,8 @@ static ErrorOr<void> 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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue