Commit cb0b96c0 authored by ods15's avatar ods15

Original Commit: r68 | ods15 | 2006-09-25 21:15:09 +0300 (Mon, 25 Sep 2006) | 2 lines

slightly more compressing, 50% compression now :)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6473 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4e39a2e5
...@@ -372,7 +372,7 @@ static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccon ...@@ -372,7 +372,7 @@ static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccon
for (i = 0; i < rc->classifications; i++) { for (i = 0; i < rc->classifications; i++) {
int j; int j;
for (j = 0; j < 8; j++) rc->books[i][j] = 2 + 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; venc->nmappings = 1;
...@@ -660,7 +660,7 @@ static void floor_fit(venc_context_t * venc, floor_t * fc, float * coeffs, int * ...@@ -660,7 +660,7 @@ static void floor_fit(venc_context_t * venc, floor_t * fc, float * coeffs, int *
assert(end <= samples); assert(end <= samples);
for (j = begin; j < end; j++) average += fabs(coeffs[j]); for (j = begin; j < end; j++) average += fabs(coeffs[j]);
average /= end - begin; 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; for (j = 0; j < range; j++) if (floor1_inverse_db_table[j * fc->multiplier] > average) break;
posts[fc->list[i].sort] = j; posts[fc->list[i].sort] = j;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment