diff options
author | Bill O'Shaughnessy <bill.oshaughnessy@gmail.com> | 2007-03-18 23:18:05 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2007-03-18 23:18:05 +0000 |
commit | 4140a5234ee0aa7e49467df497f2655e758d1cf6 (patch) | |
tree | 6421669fea2d14d9443b757311c2fc200d7e9d14 /libavcodec | |
parent | d7645fb9dbf79f47faaa42a228482a2ba01e8b73 (diff) | |
download | ffmpeg-4140a5234ee0aa7e49467df497f2655e758d1cf6.tar.gz |
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
Originally committed as revision 8444 to svn://svn.ffmpeg.org/ffmpeg/trunk
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 623541d23b..358f4e174d 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -1161,7 +1161,7 @@ static int AC3_encode_frame(AVCodecContext *avctx, 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 */ |