diff options
author | Justin Ruggles | 2010-12-29 19:17:22 +0000 |
---|---|---|
committer | Justin Ruggles | 2010-12-29 19:17:22 +0000 |
commit | ec44dd5fc2118d5f22c3c504e7d37771383e3a6e (patch) | |
tree | 5cfeebd0c0892436551ee1200411c46c1a774c84 /libavcodec/ac3enc.c | |
parent | e916acbcd1d80aa114a877d6f479788e270e0cd4 (diff) |
Change the default dB-per-bit code from 2 to 3.
This gives slightly better quality in PEAQ tests.
Code 3 gives a dBpb value of 2816 = -132dB (128 psd units = -6dB), which
corresponds to 22 bits. Since the exponents have an offset applied, the
16-bit source looks like 24-bit source to the bit allocation routine.
So using dBpb code=3 is a closer match to the exponent range.
Regression test refs updated for acodec-ac3, lavf-rm, and seek-ac3_rm.
Originally committed as revision 26144 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r-- | libavcodec/ac3enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 94fafbc314..52cb58fa2b 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -899,7 +899,7 @@ static void bit_alloc_init(AC3EncodeContext *s) s->slow_decay_code = 2; s->fast_decay_code = 1; s->slow_gain_code = 1; - s->db_per_bit_code = 2; + s->db_per_bit_code = 3; s->floor_code = 4; for (ch = 0; ch < s->channels; ch++) s->fast_gain_code[ch] = 4; |