mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
core/image: some jpegs have APP13 or COM markers after SOI
This commit is contained in:
committed by
Jeroen van Rijn
parent
21ce0c7ce9
commit
d704c45c24
@@ -147,7 +147,7 @@ which_bytes :: proc(data: []byte) -> Which_File_Type {
|
|||||||
return .JPEG
|
return .JPEG
|
||||||
case s[:3] == "\xff\xd8\xff":
|
case s[:3] == "\xff\xd8\xff":
|
||||||
switch s[3] {
|
switch s[3] {
|
||||||
case 0xdb, 0xee, 0xe1, 0xe0:
|
case 0xdb, 0xee, 0xe1, 0xe0, 0xfe, 0xed:
|
||||||
return .JPEG
|
return .JPEG
|
||||||
}
|
}
|
||||||
switch {
|
switch {
|
||||||
|
|||||||
Reference in New Issue
Block a user