1
Fork 0
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:
Nico Weber 2024-02-21 09:32:02 -05:00 committed by Andreas Kling
parent 95391fafcb
commit 607880cbd3

View file

@ -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");
}