mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 05:22:24 +00:00
LibGfx: Don't return after the first scan
Finally, it brings support for SOF0 images with several scans.
This commit is contained in:
parent
2c98eff558
commit
f70a7b763f
Notes:
sideshowbarker
2024-07-16 23:41:15 +09:00
Author: https://github.com/LucasChollet
Commit: f70a7b763f
Pull-request: https://github.com/SerenityOS/serenity/pull/17627
Reviewed-by: https://github.com/nico ✅
1 changed files with 1 additions and 0 deletions
|
@ -1342,6 +1342,7 @@ static ErrorOr<Vector<Macroblock>> construct_macroblocks(JPEGLoadingContext& con
|
|||
TRY(read_start_of_scan(*context.stream, context));
|
||||
TRY(scan_huffman_stream(*context.stream, context.current_scan.huffman_stream));
|
||||
TRY(decode_huffman_stream(context, macroblocks));
|
||||
} else if (marker == JPEG_EOI) {
|
||||
return macroblocks;
|
||||
} else {
|
||||
dbgln_if(JPEG_DEBUG, "{}: Unexpected marker {:x}!", TRY(context.stream->tell()), marker);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue