Skip to content
Snippets Groups Projects
Commit 91b78572 authored by Albrecht Schlosser's avatar Albrecht Schlosser
Browse files

Fix overly restrictive JPEG filter (#81)

parent a7a1e159
No related branches found
No related tags found
No related merge requests found
...@@ -86,10 +86,8 @@ fl_check_images(const char *name, // I - Filename ...@@ -86,10 +86,8 @@ fl_check_images(const char *name, // I - Filename
#endif // HAVE_LIBPNG #endif // HAVE_LIBPNG
#ifdef HAVE_LIBJPEG #ifdef HAVE_LIBJPEG
if (memcmp(header, "\377\330\377", 3) == 0 && if (memcmp(header, "\377\330\377", 3) == 0 && // Start-of-Image
// Start-of-Image header[3] >= 0xc0 && header[3] <= 0xfe) // APPn .. comment for JPEG file
header[3] >= 0xc0 && header[3] <= 0xef)
// APPn for JPEG file
return new Fl_JPEG_Image(name); return new Fl_JPEG_Image(name);
#endif // HAVE_LIBJPEG #endif // HAVE_LIBJPEG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment