mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
LibGfx/JPEGLoader: Add dbgln_if() when hitting unsupported marker
This commit is contained in:
parent
95391fafcb
commit
607880cbd3
1 changed files with 1 additions and 0 deletions
|
@ -904,6 +904,7 @@ static inline ErrorOr<Marker> read_marker_at_cursor(JPEGStream& stream)
|
|||
if (is_supported_marker(marker))
|
||||
return marker;
|
||||
|
||||
dbgln_if(JPEG_DEBUG, "Unsupported marker: {:#04x} around offset {:#x}", marker, stream.byte_offset());
|
||||
return Error::from_string_literal("Reached an unsupported marker");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue