comparison tools/lib64fmts.c @ 2632:17679e05c63b

Fix some XX9 variants.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 30 Nov 2023 03:07:24 +0200
parents ca617d635fce
children
comparison
equal deleted inserted replaced
2631:1f0aecb1017c 2632:17679e05c63b
179 } 179 }
180 180
181 181
182 static const Uint8 fmtFormatXX9_MagicID[] = 182 static const Uint8 fmtFormatXX9_MagicID[] =
183 { 183 {
184 0x01, 0x08, 0x0b, 0x08, 0xe0, 0x02, 0x9e, 0x32, 184 0xa2, 0x19, 0xb5, 0x02, 0x9d, 0x6f, 0x31, 0xca,
185 0x30, 0x36, 0x31, 0x00, 0x00, 0x00, 0xa2, 0x19, 185 0x10, 0xf8, 0xa9, 0x0e, 0x20, 0xd2, 0xff, 0xa5,
186 0xb5, 0x02, 0x9d, 0x6f, 0x31, 0xca, 0x10, 0xf8, 186 0x01, 0x48, 0x29, 0xf8, 0x09, 0x06, 0x85, 0x01,
187 0xa9, 0x0e, 0x20, 0xd2, 0xff, 0xa5, 0x01, 0x48, 187 0x20, 0x65, 0x08, 0x68, 0x8d, 0x8e, 0x31, 0xba,
188 0x29, 0xf8, 0x09, 0x06, 0x85, 0x01, 0x20, 0x65,
189 0x08, 0x68, 0x8d, 0x8e, 0x31, 0xba, 0x8e, 0x8d,
190 }; 188 };
191 189
192 static int fmtProbeFormatXX9(const DMGrowBuf *buf, const DMC64ImageFormat *fmt) 190 static int fmtProbeFormatXX9(const DMGrowBuf *buf, const DMC64ImageFormat *fmt)
193 { 191 {
194 if (buf->len == fmt->size && 192 if (buf->len == fmt->size &&
195 DM_MEMCMP_SIZE(buf->data, fmtFormatXX9_MagicID) == 0 193 DM_MEMCMP_SIZE(buf->data + 14, fmtFormatXX9_MagicID) == 0
196 ) 194 )
197 return DM_PROBE_SCORE_MAX; 195 return DM_PROBE_SCORE_MAX;
198 196
199 return DM_PROBE_SCORE_FALSE; 197 return DM_PROBE_SCORE_FALSE;
200 } 198 }