From 947698f29fb54b0e0e5f87b63ba7353cc704530f Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Sat, 25 Feb 2023 15:18:14 -0500 Subject: [PATCH] LibGfx: Consider `EOI` as a supported marker For now, we exit after the first scan without needing to parse `EOI`. However, to read scans in a loop we will need to properly detect and parse `EOI`. --- Userland/Libraries/LibGfx/JPEGLoader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibGfx/JPEGLoader.cpp b/Userland/Libraries/LibGfx/JPEGLoader.cpp index adb41b0d70f..5a3730020f3 100644 --- a/Userland/Libraries/LibGfx/JPEGLoader.cpp +++ b/Userland/Libraries/LibGfx/JPEGLoader.cpp @@ -515,6 +515,7 @@ static inline bool is_supported_marker(Marker const marker) case JPEG_DHT: case JPEG_DQT: case JPEG_DRI: + case JPEG_EOI: case JPEG_SOF0: case JPEG_SOI: case JPEG_SOS: