From d704c45c2417da5fa1aef36262b6adbfdd19411a Mon Sep 17 00:00:00 2001 From: Hisham Aburaqibah Date: Wed, 15 Jan 2025 15:11:09 +0200 Subject: [PATCH] core/image: some jpegs have APP13 or COM markers after SOI --- core/image/general.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/image/general.odin b/core/image/general.odin index 336b41d25..1662cf14e 100644 --- a/core/image/general.odin +++ b/core/image/general.odin @@ -147,7 +147,7 @@ which_bytes :: proc(data: []byte) -> Which_File_Type { return .JPEG case s[:3] == "\xff\xd8\xff": switch s[3] { - case 0xdb, 0xee, 0xe1, 0xe0: + case 0xdb, 0xee, 0xe1, 0xe0, 0xfe, 0xed: return .JPEG } switch {