mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibGfx+JPGLoader: Print failure message for progressive JPEGs
This commit is contained in:
parent
2df69317f1
commit
4924b86b2a
Notes:
sideshowbarker
2024-07-19 05:20:11 +09:00
Author: https://github.com/devsh0 Commit: https://github.com/SerenityOS/serenity/commit/4924b86b2aa Pull-request: https://github.com/SerenityOS/serenity/pull/2653
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,7 @@
|
|||
#define JPG_EOI 0xFFD9
|
||||
#define JPG_RST 0XFFDD
|
||||
#define JPG_SOF0 0XFFC0
|
||||
#define JPG_SOF2 0xFFC2
|
||||
#define JPG_SOI 0XFFD8
|
||||
#define JPG_SOS 0XFFDA
|
||||
#define JPG_COM 0xFFFE
|
||||
|
@ -438,6 +439,9 @@ static inline bool is_valid_marker(const Marker marker)
|
|||
case JPG_SOI:
|
||||
case JPG_SOS:
|
||||
return true;
|
||||
case JPG_SOF2:
|
||||
dbg() << "Progressive JPEGs are not supported yet. Decoder will fail!";
|
||||
return false;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue