[FFmpeg-soc] [soc]: r5547 - aac-sbr/aacsbr.c
alexc
subversion at mplayerhq.hu
Thu Dec 17 04:36:53 CET 2009
Author: alexc
Date: Thu Dec 17 04:36:53 2009
New Revision: 5547
Log:
Fix SBR noise dequant for bs_coupling.
Modified:
aac-sbr/aacsbr.c
Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c Thu Dec 17 02:04:17 2009 (r5546)
+++ aac-sbr/aacsbr.c Thu Dec 17 04:36:53 2009 (r5547)
@@ -1002,7 +1002,7 @@ static void sbr_dequant(SpectralBandRepl
for (l = 1; l <= sbr->data[ch].bs_num_noise; l++) {
for (k = 0; k < sbr->n_q; k++) {
float temp1 = powf(2.0f, NOISE_FLOOR_OFFSET - sbr->noise_facs[0][l][k] + 1);
- float temp2 = pan_offset - sbr->noise_facs[0][l][k];
+ float temp2 = 12 - sbr->noise_facs[1][l][k];
sbr->noise_facs[0][l][k] = temp1 / (1.0f + powf(2.0f, temp2));
sbr->noise_facs[1][l][k] = temp1 / (1.0f + powf(2.0f, -temp2));
}
More information about the FFmpeg-soc
mailing list