mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +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
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