# HG changeset patch # User ods15 # Date 1159769283 0 # Node ID 46441c25abdc3a89e5abb9ddd8f4441f30812d66 # Parent edd2496ee02a93558e6b3e95ac1f0e88f141e62b Original Commit: r68 | ods15 | 2006-09-25 21:15:09 +0300 (Mon, 25 Sep 2006) | 2 lines slightly more compressing, 50% compression now :) diff -r edd2496ee02a -r 46441c25abdc vorbis_enc.c --- a/vorbis_enc.c Mon Oct 02 06:08:01 2006 +0000 +++ b/vorbis_enc.c Mon Oct 02 06:08:03 2006 +0000 @@ -372,7 +372,7 @@ for (i = 0; i < rc->classifications; i++) { int j; for (j = 0; j < 8; j++) rc->books[i][j] = 2 + j; - //rc->books[i][0] = rc->books[i][1] = rc->books[i][2] = rc->books[i][3] = -1; + rc->books[i][0] = rc->books[i][1] = rc->books[i][2] = rc->books[i][3] = -1; } venc->nmappings = 1; @@ -660,7 +660,7 @@ assert(end <= samples); for (j = begin; j < end; j++) average += fabs(coeffs[j]); average /= end - begin; - average /= 5000; // MAGIC! + average /= 32; // MAGIC! for (j = 0; j < range; j++) if (floor1_inverse_db_table[j * fc->multiplier] > average) break; posts[fc->list[i].sort] = j; }