Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-02-15 21:46:56 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-02-17 01:00:49 +0300
commit660ab0e64d0c3eaa3d3927e3ad00b537ec1b633d (patch)
tree699090830420b28ad1299290e80e70173c0f8828 /libavcodec
parenta41aebf1535da0cb2b2e64e060d50cad73e0b1fa (diff)
ac3enc: change default floor code to 7.
This is to match the value in every (E-)AC-3 file from commercial sources. It has a negligible effect on audio quality. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 50d7140441b61809ad4ba4ea7b4ad8fe77bc6888)
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ac3enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index c15fd5109c..72a6c89288 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -752,7 +752,7 @@ static void bit_alloc_init(AC3EncodeContext *s)
s->fast_decay_code = 1;
s->slow_gain_code = 1;
s->db_per_bit_code = 3;
- s->floor_code = 4;
+ s->floor_code = 7;
for (ch = 0; ch < s->channels; ch++)
s->fast_gain_code[ch] = 4;