mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibGfx/JPEG: Don't reject SOF2 image with successive approximations
It means full SOF2 JPEG support, yay!
This commit is contained in:
parent
fbad9a70fc
commit
f42d850211
Notes:
sideshowbarker
2024-07-17 17:06:59 +09:00
Author: https://github.com/LucasChollet
Commit: f42d850211
Pull-request: https://github.com/SerenityOS/serenity/pull/17907
Issue: https://github.com/SerenityOS/serenity/issues/4039
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/nico ✅
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 1 additions and 2 deletions
|
@ -752,8 +752,7 @@ static ErrorOr<void> read_start_of_scan(Stream& stream, JPEGLoadingContext& cont
|
|||
current_scan.successive_approximation_high,
|
||||
current_scan.successive_approximation_low);
|
||||
|
||||
// FIXME: Support SOF2 jpegs with current_scan.successive_approximation != 0
|
||||
if (current_scan.spectral_selection_start > 63 || current_scan.spectral_selection_end > 63 || successive_approximation != 0) {
|
||||
if (current_scan.spectral_selection_start > 63 || current_scan.spectral_selection_end > 63 || current_scan.successive_approximation_high > 13 || current_scan.successive_approximation_low > 13) {
|
||||
dbgln_if(JPEG_DEBUG, "ERROR! Start of Selection: {}, End of Selection: {}, Successive Approximation High: {}, Successive Approximation Low: {}!",
|
||||
current_scan.spectral_selection_start,
|
||||
current_scan.spectral_selection_end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue