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

alexc subversion at mplayerhq.hu
Fri Dec 4 05:17:09 CET 2009


Author: alexc
Date: Fri Dec  4 05:17:09 2009
New Revision: 5489

Log:
Index s_m_boost by the envelope number not t_env.

Modified:
   aac-sbr/aacsbr.c

Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c	Fri Dec  4 05:17:06 2009	(r5488)
+++ aac-sbr/aacsbr.c	Fri Dec  4 05:17:09 2009	(r5489)
@@ -1597,9 +1597,9 @@ static void sbr_hf_assemble(float y[2][6
             sbr->f_indexsine[i][0] = (((sbr->f_indexsine[i][1] + 1) & 3) + i - (sbr->t_env[ch][0] << 1)) & 3;
             for (m = 0; m < sbr->m; m++) {
                 y[0][i + ENVELOPE_ADJUSTMENT_OFFSET][m + sbr->k[3]][0] =
-                    w_temp[i][m][0] + sbr->s_m_boost[i][m] * phi[0][sbr->f_indexsine[i][0]];
+                    w_temp[i][m][0] + sbr->s_m_boost[l][m] * phi[0][sbr->f_indexsine[i][0]];
                 y[0][i + ENVELOPE_ADJUSTMENT_OFFSET][m + sbr->k[3]][1] =
-                    w_temp[i][m][1] + sbr->s_m_boost[i][m] * phi[1][sbr->f_indexsine[i][0]] * (1 - 2*((m + sbr->k[3]) & 1));
+                    w_temp[i][m][1] + sbr->s_m_boost[l][m] * phi[1][sbr->f_indexsine[i][0]] * (1 - 2*((m + sbr->k[3]) & 1));
             }
         }
     }


More information about the FFmpeg-soc mailing list