Skip to content

Commit

Permalink
core/image: some jpegs have APP13 or COM markers after SOI
Browse files Browse the repository at this point in the history
  • Loading branch information
IllusionMan1212 committed Jan 15, 2025
1 parent b136aa2 commit a23dff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/image/general.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a23dff0

Please sign in to comment.