diff options
author | Bill O'Shaughnessy <bill.oshaughnessy@gmail.com> | 2006-11-23 22:21:01 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2006-11-23 22:21:01 +0000 |
commit | 3e954443dd4ae9b5f644de11f04cfb59a4e82685 (patch) | |
tree | 6492b58123fee6491845567a56da9f9ab1c60cfb /libavcodec/ac3enc.c | |
parent | 6e8c46b7e3068aad5b9521eb6731c66172c76e31 (diff) | |
download | ffmpeg-streaming-3e954443dd4ae9b5f644de11f04cfb59a4e82685.zip ffmpeg-streaming-3e954443dd4ae9b5f644de11f04cfb59a4e82685.tar.gz |
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:36 PM
subject: [Ffmpeg-devel] Simpler Patch to bring AC3 encoder output up to input level
Originally committed as revision 7160 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.c')
-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 bac703c..c8c8920 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -1379,7 +1379,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 - 9; + exp_samples[i][ch] = v - 10; lshift_tab(input_samples, N, v); /* do the MDCT */ |