aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/libarchive/bz/compress.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c
index 534cf665a..992fd5884 100644
--- a/archival/libarchive/bz/compress.c
+++ b/archival/libarchive/bz/compress.c
@@ -289,11 +289,16 @@ void sendMTFValues(EState* s)
289 289
290 /*--- Decide how many coding tables to use ---*/ 290 /*--- Decide how many coding tables to use ---*/
291 AssertH(s->nMTF > 0, 3001); 291 AssertH(s->nMTF > 0, 3001);
292 if (s->nMTF < 200) nGroups = 2; else 292 // 1..199 = 2
293 if (s->nMTF < 600) nGroups = 3; else 293 // 200..599 = 3
294 if (s->nMTF < 1200) nGroups = 4; else 294 // 600..1199 = 4
295 if (s->nMTF < 2400) nGroups = 5; else 295 // 1200..2399 = 5
296 nGroups = 6; 296 // else 6
297 nGroups = 2;
298 nGroups += (s->nMTF >= 200);
299 nGroups += (s->nMTF >= 600);
300 nGroups += (s->nMTF >= 1200);
301 nGroups += (s->nMTF >= 2400);
297 302
298 /*--- Generate an initial set of coding tables ---*/ 303 /*--- Generate an initial set of coding tables ---*/
299 { 304 {