summaryrefslogtreecommitdiff
path: root/libavcodec/ac3enc.c
diff options
context:
space:
mode:
authorBenjamin Larsson <banan@ludd.ltu.se>2006-04-10 12:12:26 +0000
committerBenjamin Larsson <banan@ludd.ltu.se>2006-04-10 12:12:26 +0000
commitf1f7807abd46e4fa77f929eaedc044d3ec593cc5 (patch)
treead5e420a50bbadd6ac9414acaeb8e9b19f1ee5c7 /libavcodec/ac3enc.c
parentf122deb45cbd00ef0e1726e79dd3658b553d1eab (diff)
AC3 encoding volume fix, by Justin Ruggles jruggle earthlink net.
Originally committed as revision 5281 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r--libavcodec/ac3enc.c2
1 files changed, 1 insertions, 1 deletions
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 */