summaryrefslogtreecommitdiff
path: root/libavcodec/ac3enc.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-02-02 18:23:59 +0000
committerMans Rullgard <mans@mansr.com>2011-02-02 20:00:43 +0000
commitc3beafa0f14fd81ab43083f61872cbd5426647cf (patch)
tree74fcb48781459d5924bb8d1f2751a216e5adcca2 /libavcodec/ac3enc.c
parent5fce60c3a9fbb21e580bad9165bf19d86ee7d96f (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>
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r--libavcodec/ac3enc.c2
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
/**