diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-02-02 18:23:59 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-04 03:08:10 +0100 |
commit | 1003022668d755fe1015a7873efa32cfb47fe849 (patch) | |
tree | 0c8b1bd9fb6c93028df9e044f2cb285d35d8e12b /libavcodec | |
parent | 057f3d2763ee72e9c2f4e30bd2cd5e3c0ad4d431 (diff) |
ac3enc: Change EXP_DIFF_THRESHOLD to 500.
This patch changes the exponent difference threshold in the exponent
strategy decision function of the AC-3 encoder. I tested lowering in
increments of 100. From 1000 down to 500 generally increased in quality
with each step, but 400 was generally much worse.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit c3beafa0f14fd81ab43083f61872cbd5426647cf)
Diffstat (limited to 'libavcodec')
-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 ed7a171ac7..e41a0aec65 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -434,7 +434,7 @@ static void extract_exponents(AC3EncodeContext *s) * Exponent Difference Threshold. * New exponents are sent if their SAD exceed this number. */ -#define EXP_DIFF_THRESHOLD 1000 +#define EXP_DIFF_THRESHOLD 500 /** |