comparison ac3enc.c @ 3258:8d42d21e570c libavcodec

AC3 encoding volume fix, by Justin Ruggles jruggle earthlink net.
author banan
date Mon, 10 Apr 2006 12:12:26 +0000
parents 219afc0c4a80
children c925a46f7594
comparison
equal deleted inserted replaced
3257:63f61b09dcee 3258:8d42d21e570c
1375 /* Normalize the samples to use the maximum available 1375 /* Normalize the samples to use the maximum available
1376 precision */ 1376 precision */
1377 v = 14 - log2_tab(input_samples, N); 1377 v = 14 - log2_tab(input_samples, N);
1378 if (v < 0) 1378 if (v < 0)
1379 v = 0; 1379 v = 0;
1380 exp_samples[i][ch] = v - 8; 1380 exp_samples[i][ch] = v - 9;
1381 lshift_tab(input_samples, N, v); 1381 lshift_tab(input_samples, N, v);
1382 1382
1383 /* do the MDCT */ 1383 /* do the MDCT */
1384 mdct512(mdct_coef[i][ch], input_samples); 1384 mdct512(mdct_coef[i][ch], input_samples);
1385 1385