Mercurial > libavcodec.hg
comparison ac3enc.c @ 4686:3a891d2379ce libavcodec
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
author | jbr |
---|---|
date | Sun, 18 Mar 2007 23:18:05 +0000 |
parents | 056127e5df89 |
children | 0cb02a723a62 |
comparison
equal
deleted
inserted
replaced
4685:2c8f88e7397a | 4686:3a891d2379ce |
---|---|
1159 /* Normalize the samples to use the maximum available | 1159 /* Normalize the samples to use the maximum available |
1160 precision */ | 1160 precision */ |
1161 v = 14 - log2_tab(input_samples, N); | 1161 v = 14 - log2_tab(input_samples, N); |
1162 if (v < 0) | 1162 if (v < 0) |
1163 v = 0; | 1163 v = 0; |
1164 exp_samples[i][ch] = v - 10; | 1164 exp_samples[i][ch] = v - 9; |
1165 lshift_tab(input_samples, N, v); | 1165 lshift_tab(input_samples, N, v); |
1166 | 1166 |
1167 /* do the MDCT */ | 1167 /* do the MDCT */ |
1168 mdct512(mdct_coef[i][ch], input_samples); | 1168 mdct512(mdct_coef[i][ch], input_samples); |
1169 | 1169 |