]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
remove tiff type mm
authorBastian Dehn <hhaalo@arcor.de>
Sun, 9 Feb 2025 18:22:40 +0000 (19:22 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 9 Feb 2025 18:22:40 +0000 (19:22 +0100)
src/kds_s2000w_image_type_check.c

index 95773e19d88eeb9072eb7946c62937cec5e634a5..6fbf6c00492711e9818dd6087f9863eebf22cac0 100644 (file)
@@ -15,15 +15,7 @@ bool kds_s2000w_image_type_check_is_tiff(blobdata* image)
        bool result = image_data[0] == (char)0x49;
        result = result && image_data[1] == (char)0x49;
        result = result && image_data[2] == (char)0x2A;
-       result = result && image_data[3] == (char)0x00;
-
-       if (result == 1)
-               return result;
-
-       result = image_data[0] == (char)0x4d;
-       result = result && image_data[1] == (char)0x4d;
-       result = result && image_data[2] == (char)0x00;
-       return result && image_data[3] == (char)0x2A;
+       return result && image_data[3] == (char)0x00;
 }
 
 bool kds_s2000w_image_type_check_is_pnm(blobdata* image)