diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:07:36 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:07:36 +0000 |
commit | b8d5b161ae31b840dea470a57e44a1e2542c038b (patch) | |
tree | 8e6d6e8b5bbce91936eeae8af336fe52b2a9919e /libavcodec | |
parent | 36e09a514434802ef924930f3fe3dbaee03793f2 (diff) | |
download | ffmpeg-b8d5b161ae31b840dea470a57e44a1e2542c038b.tar.gz |
Original Commit: r54 | ods15 | 2006-09-24 13:54:12 +0300 (Sun, 24 Sep 2006) | 2 lines
change floor value to lower residue
Originally committed as revision 6460 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vorbis_enc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index fc3abf27ff..2c55d9e344 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -325,6 +325,7 @@ static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccon 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 @@ static int vorbis_encode_frame(AVCodecContext * avccontext, unsigned char * pack 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 @@ static int vorbis_encode_frame(AVCodecContext * avccontext, unsigned char * pack } 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]; } } |