Allow non-JFIF JPEG images.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
924e8a92d1
commit
846cfd4416
@ -89,7 +89,7 @@ fl_check_images(const char *name, // I - Filename
|
||||
#ifdef HAVE_LIBJPEG
|
||||
if (memcmp(header, "\377\330\377", 3) == 0 &&
|
||||
// Start-of-Image
|
||||
header[3] >= 0xe0 && header[3] <= 0xef)
|
||||
header[3] >= 0xc0 && header[3] <= 0xef)
|
||||
// APPn for JPEG file
|
||||
return new Fl_JPEG_Image(name);
|
||||
#endif // HAVE_LIBJPEG
|
||||
|
Loading…
Reference in New Issue
Block a user