core/image: some jpegs have APP13 or COM markers after SOI

This commit is contained in:
Hisham Aburaqibah
2025-01-15 15:11:09 +02:00
committed by Jeroen van Rijn
parent 21ce0c7ce9
commit d704c45c24
+1 -1
View File
@@ -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 {