From ad447c7dba76fd5e02550456cbfdb005ba72ba18 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 9 Feb 2025 19:22:40 +0100 Subject: [PATCH] remove tiff type mm --- src/kds_s2000w_image_type_check.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/kds_s2000w_image_type_check.c b/src/kds_s2000w_image_type_check.c index 95773e1..6fbf6c0 100644 --- a/src/kds_s2000w_image_type_check.c +++ b/src/kds_s2000w_image_type_check.c @@ -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) -- 2.39.5