# HG changeset patch # User Matti Hamalainen # Date 1527689424 -10800 # Node ID dc3fbd130db7907c5548e64f6f100ec57a7384ee # Parent 7555c8803529c63692ec587836fb796b3bac3604 RLE analyze was ran before setting up the compression config. Oops. Fixed. diff -r 7555c8803529 -r dc3fbd130db7 tools/lib64fmts.c --- a/tools/lib64fmts.c Wed May 30 17:05:19 2018 +0300 +++ b/tools/lib64fmts.c Wed May 30 17:10:24 2018 +0300 @@ -139,12 +139,13 @@ goto out; // Analyze and setup RLE - dmGenericRLEAnalyze(tmp.data, tmp.len, &cfg); cfg.type = DM_COMP_RLE_MARKER; cfg.flags = DM_RLE_BYTE_RUNS | DM_RLE_ORDER_1; cfg.rleMinCountB = 3; cfg.rleMaxCountB = 255; + dmGenericRLEAnalyze(tmp.data, tmp.len, &cfg); + // Add the header bits if (!dmGrowBufPut(buf, magicID, strlen(magicID)) || !dmGrowBufPutU8(buf, cfg.rleMarkerB)) @@ -588,12 +589,13 @@ goto out; // Analyze and setup RLE - dmGenericRLEAnalyze(tmp.data, tmp.len, &cfg); cfg.type = DM_COMP_RLE_MARKER; cfg.flags = DM_RLE_BYTE_RUNS | DM_RLE_ORDER_1; cfg.rleMinCountB = 3; cfg.rleMaxCountB = 255; + dmGenericRLEAnalyze(tmp.data, tmp.len, &cfg); + // Add the header bits if (!dmGrowBufPut(buf, fmtFunPaint2MagicID, strlen(fmtFunPaint2MagicID)) || !dmGrowBufPutU8(buf, cfg.rleMarkerB))