[FFmpeg-soc] [soc]: r5507 - aac-sbr/aacsbr.c

alexc subversion at mplayerhq.hu
Mon Dec 7 18:16:44 CET 2009


Author: alexc
Date: Mon Dec  7 18:16:43 2009
New Revision: 5507

Log:
Reverse the indexing on x_high in sbr_hf_assemble().

This matches the way x_high is indexed everywhere else and matches the
change in r5503.

Modified:
   aac-sbr/aacsbr.c

Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c	Mon Dec  7 18:16:41 2009	(r5506)
+++ aac-sbr/aacsbr.c	Mon Dec  7 18:16:43 2009	(r5507)
@@ -1553,9 +1553,9 @@ static void sbr_hf_assemble(float y[2][6
     }
 
     for (i = sbr->t_env[ch][0] << 1; i < sbr->t_env[ch][ch_data->bs_num_env[1]] << 1; i++) {
-        const int idx1 = i + ENVELOPE_ADJUSTMENT_OFFSET;
+        const int idx2 = i + ENVELOPE_ADJUSTMENT_OFFSET;
         for (m = 0; m < sbr->m; m++) {
-            const int idx2 = m + sbr->k[3];
+            const int idx1 = m + sbr->k[3];
             w_temp[i][m][0] = x_high[idx1][idx2][0] * g_filt[i][m];
             w_temp[i][m][1] = x_high[idx1][idx2][1] * g_filt[i][m];
         }


More information about the FFmpeg-soc mailing list