If DQT frame is found, then no extra information is available,
consider like JFIF and go straight to image dimension.
enum {
JPEG_MARKER_SOI = 0xd8,
+ JPEG_MARKER_DQT = 0xdb,
JPEG_MARKER_JFIF = 0xe0,
JPEG_MARKER_EXIF = 0xe1,
JPEG_MARKER_COMM = 0xfe,
r = -3;
goto done;
}
- } else if (type == JPEG_MARKER_JFIF) {
+ } else if (type == JPEG_MARKER_JFIF || type == JPEG_MARKER_DQT) {
if (_jfif_data_get(fd, len, &info) != 0) {
fprintf(stderr, "ERROR: could not get JPEG size (%s).\n",
finfo->path);