diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2006-04-10 12:12:26 +0000 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2006-04-10 12:12:26 +0000 |
commit | f1f7807abd46e4fa77f929eaedc044d3ec593cc5 (patch) | |
tree | ad5e420a50bbadd6ac9414acaeb8e9b19f1ee5c7 /libavcodec/ac3enc.c | |
parent | f122deb45cbd00ef0e1726e79dd3658b553d1eab (diff) | |
download | ffmpeg-streaming-f1f7807abd46e4fa77f929eaedc044d3ec593cc5.zip ffmpeg-streaming-f1f7807abd46e4fa77f929eaedc044d3ec593cc5.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 5be791c..5ec8b4f 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 */ |