changeset 4686:3a891d2379ce libavcodec

AC-3 encoded volume is too high. Revert revision 7160: bring AC3 encoder output up to input volume level patch by Bill O'Shaughnessy % bill P oshaughnessy A gmail.com % + reg tests update gruntwork by me Original thread: date: Nov 21, 2006 11:36PM subject: [Ffmpeg-devel] Simpler Patch to bring AC3 encoder output up to input level
author jbr
date Sun, 18 Mar 2007 23:18:05 +0000
parents 2c8f88e7397a
children 5359a5ab01a8
files ac3enc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ac3enc.c	Sun Mar 18 22:32:39 2007 +0000
+++ b/ac3enc.c	Sun Mar 18 23:18:05 2007 +0000
@@ -1161,7 +1161,7 @@
             v = 14 - log2_tab(input_samples, N);
             if (v < 0)
                 v = 0;
-            exp_samples[i][ch] = v - 10;
+            exp_samples[i][ch] = v - 9;
             lshift_tab(input_samples, N, v);
 
             /* do the MDCT */