1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:07:45 +00:00

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`.
This commit is contained in:
Lucas CHOLLET 2023-02-25 15:18:14 -05:00 committed by Andreas Kling
parent 698605444b
commit 947698f29f

View file

@ -515,6 +515,7 @@ static inline bool is_supported_marker(Marker const marker)
case JPEG_DHT: case JPEG_DHT:
case JPEG_DQT: case JPEG_DQT:
case JPEG_DRI: case JPEG_DRI:
case JPEG_EOI:
case JPEG_SOF0: case JPEG_SOF0:
case JPEG_SOI: case JPEG_SOI:
case JPEG_SOS: case JPEG_SOS: