From f1f7807abd46e4fa77f929eaedc044d3ec593cc5 Mon Sep 17 00:00:00 2001 From: Benjamin Larsson Date: Mon, 10 Apr 2006 12:12:26 +0000 Subject: AC3 encoding volume fix, by Justin Ruggles jruggle earthlink net. Originally committed as revision 5281 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ac3enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec') diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 5be791c1d3..5ec8b4f5ac 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -1377,7 +1377,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 - 8; + exp_samples[i][ch] = v - 9; lshift_tab(input_samples, N, v); /* do the MDCT */ -- cgit v1.2.3