[FFmpeg-soc] [soc]: r5518 - aac-sbr/aacsbr.c
alexc
subversion at mplayerhq.hu
Wed Dec 9 02:17:42 CET 2009
Author: alexc
Date: Wed Dec 9 02:17:41 2009
New Revision: 5518
Log:
Fix calculation of q_mapped.
In q_mapped m is derived from f_tablenoise not f_tablehigh/low.
Modified:
aac-sbr/aacsbr.c
Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c Tue Dec 8 23:59:09 2009 (r5517)
+++ aac-sbr/aacsbr.c Wed Dec 9 02:17:41 2009 (r5518)
@@ -1338,7 +1338,7 @@ static void sbr_mapping(AACContext *ac,
// ch_data->bs_num_noise > 1 => 2 noise floors
k = (ch_data->bs_num_noise > 1) && (sbr->t_env[ch][l] >= sbr->t_q[ch][1]);
for (i = 0; i < sbr->n_q; i++)
- for (m = table[i]; m < table[i + 1]; m++)
+ for (m = sbr->f_tablenoise[i]; m < sbr->f_tablenoise[i + 1]; m++)
sbr->q_mapped[l][m - sbr->k[3]] = sbr->noise_facs[ch][k+1][i];
for (i = 0; i < sbr->n[1]; i++) {
More information about the FFmpeg-soc
mailing list