Mercurial > libavcodec.hg
comparison ac3enc.c @ 4230:1b447031a8b8 libavcodec
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
author | gpoirier |
---|---|
date | Thu, 23 Nov 2006 22:21:01 +0000 |
parents | bbe0bc387a19 |
children | d539eb4db3d2 |
comparison
equal
deleted
inserted
replaced
4229:304255e80196 | 4230:1b447031a8b8 |
---|---|
1377 /* Normalize the samples to use the maximum available | 1377 /* Normalize the samples to use the maximum available |
1378 precision */ | 1378 precision */ |
1379 v = 14 - log2_tab(input_samples, N); | 1379 v = 14 - log2_tab(input_samples, N); |
1380 if (v < 0) | 1380 if (v < 0) |
1381 v = 0; | 1381 v = 0; |
1382 exp_samples[i][ch] = v - 9; | 1382 exp_samples[i][ch] = v - 10; |
1383 lshift_tab(input_samples, N, v); | 1383 lshift_tab(input_samples, N, v); |
1384 | 1384 |
1385 /* do the MDCT */ | 1385 /* do the MDCT */ |
1386 mdct512(mdct_coef[i][ch], input_samples); | 1386 mdct512(mdct_coef[i][ch], input_samples); |
1387 | 1387 |