summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2023-02-25 15:18:14 -0500
committerAndreas Kling <kling@serenityos.org>2023-02-27 13:39:22 +0100
commit947698f29fb54b0e0e5f87b63ba7353cc704530f (patch)
tree28b1d552829f0b862883239bb0cdb4c28a66d700 /Userland
parent698605444bca42d2e7a1841aa82580b9b488b0de (diff)
downloadserenity-947698f29fb54b0e0e5f87b63ba7353cc704530f.zip
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`.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGfx/JPEGLoader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/JPEGLoader.cpp b/Userland/Libraries/LibGfx/JPEGLoader.cpp
index adb41b0d70..5a3730020f 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: