Mercurial > hg > dmlib
comparison tools/lib64fmts.c @ 1753:09641e7179f6
Attempt to avoid misprobes of some Crest Hires FLI designer files as ECI 1.0 files.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 11 Jun 2018 15:22:29 +0300 |
parents | fe3ae3fdf0f3 |
children | aa6a858db6bd |
comparison
equal
deleted
inserted
replaced
1752:fe3ae3fdf0f3 | 1753:09641e7179f6 |
---|---|
775 { | 775 { |
776 size_t i, n; | 776 size_t i, n; |
777 | 777 |
778 // XXX TODO: Perhaps count statistics about used byte values | 778 // XXX TODO: Perhaps count statistics about used byte values |
779 // and compare to value in buf[2] which is the RLE marker | 779 // and compare to value in buf[2] which is the RLE marker |
780 if (len < 128 || !dmCompareAddr16(buf, 0, fmt->addr)) | 780 if (len < 128 || |
781 !dmCompareAddr16(buf, 0, fmt->addr) || | |
782 len == 16386) // Crest Hires FLI Designer | |
781 return DM_PROBE_SCORE_FALSE; | 783 return DM_PROBE_SCORE_FALSE; |
782 | 784 |
783 for (n = 0, i = 3; i < len; i++) | 785 for (n = 0, i = 3; i < len; i++) |
784 if (buf[i] == buf[2]) n++; | 786 if (buf[i] == buf[2]) n++; |
785 | 787 |