# HG changeset patch # User ods15 # Date 1159769256 0 # Node ID d692105e5a582384ad443fcbbc8366bfeb0f5c55 # Parent 8de41fcc6500be77bae13158726ca044ff4bf9ac Original Commit: r54 | ods15 | 2006-09-24 13:54:12 +0300 (Sun, 24 Sep 2006) | 2 lines change floor value to lower residue diff -r 8de41fcc6500 -r d692105e5a58 vorbis_enc.c --- a/vorbis_enc.c Mon Oct 02 06:07:34 2006 +0000 +++ b/vorbis_enc.c Mon Oct 02 06:07:36 2006 +0000 @@ -325,6 +325,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; } venc->nmappings = 1; @@ -750,8 +751,8 @@ int range = 255 / fc->multiplier + 1; int j; put_bits(&pb, 1, 1); // non zero - put_bits(&pb, ilog(range - 1), 113); // magic value - 3.7180282E-05 - put_bits(&pb, ilog(range - 1), 113); // both sides of X + put_bits(&pb, ilog(range - 1), 180); // magic value - 3.7180282E-05 + put_bits(&pb, ilog(range - 1), 180); // both sides of X for (j = 0; j < fc->partitions; j++) { floor_class_t * c = &fc->classes[fc->partition_to_class[j]]; codebook_t * book = &venc->codebooks[c->books[0]]; @@ -763,7 +764,7 @@ } for (j = 0; j < samples; j++) { - venc->floor[i * samples + j] = floor1_inverse_db_table[113]; + venc->floor[i * samples + j] = floor1_inverse_db_table[180]; } }