Skip to content

Commit

Permalink
Pete Shinners - Thu Jun 20 10:05:54 PDT 2002
Browse files Browse the repository at this point in the history
 * The JPEG loader can now load EXIF format JPEG images
  • Loading branch information
slouken committed Jun 20, 2002
1 parent 9eb8ab4 commit 9f74dfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
@@ -1,5 +1,7 @@

1.2.3:
Pete Shinners - Thu Jun 20 10:05:54 PDT 2002
* The JPEG loader can now load EXIF format JPEG images
Dag-Erling Smorgrav - Thu May 2 19:09:48 PDT 2002
* The XCF loader now ignores invisible layers and channels

Expand Down
3 changes: 2 additions & 1 deletion IMG_jpg.c
Expand Up @@ -48,7 +48,8 @@ int IMG_isJPG(SDL_RWops *src)
if ( (magic[0] == 0xFF) && (magic[1] == 0xD8) ) {
SDL_RWread(src, magic, 4, 1);
SDL_RWread(src, magic, 4, 1);
if ( memcmp((char *)magic, "JFIF", 4) == 0 ) {
if ( memcmp((char *)magic, "JFIF", 4) == 0 ||
memcmp((char *)magic, "Exif", 4) == 0 ) {
is_JPG = 1;
}
}
Expand Down

0 comments on commit 9f74dfb

Please sign in to comment.