# HG changeset patch # User jbr # Date 1174259885 0 # Node ID 3a891d2379ce1f24f888981ae1c01b375ea2b949 # Parent 2c8f88e7397a6dc35df6fc2eee7f62bd530cfc7e 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 diff -r 2c8f88e7397a -r 3a891d2379ce ac3enc.c --- 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 */