changeset 494:abb112ac9916

Prevent false positive probes of certain Interpaint files as Amica Paint packed.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 14 Nov 2012 19:15:20 +0200
parents 1bdd2af756ec
children 30145d17aebd
files lib64gfx.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib64gfx.c	Wed Nov 14 19:14:32 2012 +0200
+++ b/lib64gfx.c	Wed Nov 14 19:15:20 2012 +0200
@@ -214,6 +214,10 @@
     if (len < AMICA_DM_PROBE_SIZE || buf[0] != 0x00 || buf[1] != 0x40)
         return DM_PROBE_SCORE_FALSE;
     
+    // Interpaint Hi-Res gives a false positive
+    if (len == 9002)
+        return DM_PROBE_SCORE_FALSE;
+    
     for (n = 0, i = 2; i < AMICA_DM_PROBE_SIZE; i++)
         if (buf[i] == 0xC2) n++;