changeset 2632:17679e05c63b

Fix some XX9 variants.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 30 Nov 2023 03:07:24 +0200
parents 1f0aecb1017c
children d683f47e4dd9
files tools/lib64fmts.c
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64fmts.c	Thu Nov 30 02:16:55 2023 +0200
+++ b/tools/lib64fmts.c	Thu Nov 30 03:07:24 2023 +0200
@@ -181,18 +181,16 @@
 
 static const Uint8 fmtFormatXX9_MagicID[] =
 {
-    0x01, 0x08, 0x0b, 0x08,  0xe0, 0x02, 0x9e, 0x32,
-    0x30, 0x36, 0x31, 0x00,  0x00, 0x00, 0xa2, 0x19,
-    0xb5, 0x02, 0x9d, 0x6f,  0x31, 0xca, 0x10, 0xf8,
-    0xa9, 0x0e, 0x20, 0xd2,  0xff, 0xa5, 0x01, 0x48,
-    0x29, 0xf8, 0x09, 0x06,  0x85, 0x01, 0x20, 0x65,
-    0x08, 0x68, 0x8d, 0x8e,  0x31, 0xba, 0x8e, 0x8d,
+    0xa2, 0x19, 0xb5, 0x02,  0x9d, 0x6f, 0x31, 0xca,
+    0x10, 0xf8, 0xa9, 0x0e,  0x20, 0xd2, 0xff, 0xa5,
+    0x01, 0x48, 0x29, 0xf8,  0x09, 0x06, 0x85, 0x01,
+    0x20, 0x65, 0x08, 0x68,  0x8d, 0x8e, 0x31, 0xba,
 };
 
 static int fmtProbeFormatXX9(const DMGrowBuf *buf, const DMC64ImageFormat *fmt)
 {
     if (buf->len == fmt->size &&
-        DM_MEMCMP_SIZE(buf->data, fmtFormatXX9_MagicID) == 0
+        DM_MEMCMP_SIZE(buf->data + 14, fmtFormatXX9_MagicID) == 0
         )
         return DM_PROBE_SCORE_MAX;