[FFmpeg-soc] [soc]: r4336 - wmapro/wma3dec.c

faust3 subversion at mplayerhq.hu
Sat May 30 15:45:17 CEST 2009


Author: faust3
Date: Sat May 30 15:45:17 2009
New Revision: 4336

Log:
reindent after previous commit

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Sat May 30 15:40:42 2009	(r4335)
+++ wmapro/wma3dec.c	Sat May 30 15:45:17 2009	(r4336)
@@ -1018,27 +1018,26 @@ static void wma_calc_decorrelation_matri
         chgroup->decorrelation_matrix[chgroup->num_channels * i + i] = chgroup->positive[i]?1.0:-1.0;
 
     for(i=1;i<chgroup->num_channels;i++){
-            int x;
-            for(x=0;x<i;x++){
-                int y;
-                float tmp1[MAX_CHANNELS];
-                float tmp2[MAX_CHANNELS];
-                memcpy(tmp1, &chgroup->decorrelation_matrix[x * chgroup->num_channels], sizeof(float) * (i + 1));
-                memcpy(tmp2, &chgroup->decorrelation_matrix[i * chgroup->num_channels], sizeof(float) * (i + 1));
-                for(y=0;y < i + 1 ; y++){
-                    float v1 = tmp1[y];
-                    float v2 = tmp2[y];
-                    int n = chgroup->rotation_offset[offset + x];
-                    float cosv = sin(n*M_PI / 64.0);                // FIXME: use one table for this
-                    float sinv = -cos(n*M_PI / 64.0);
+        int x;
+        for(x=0;x<i;x++){
+            int y;
+            float tmp1[MAX_CHANNELS];
+            float tmp2[MAX_CHANNELS];
+            memcpy(tmp1, &chgroup->decorrelation_matrix[x * chgroup->num_channels], sizeof(float) * (i + 1));
+            memcpy(tmp2, &chgroup->decorrelation_matrix[i * chgroup->num_channels], sizeof(float) * (i + 1));
+            for(y=0;y < i + 1 ; y++){
+                float v1 = tmp1[y];
+                float v2 = tmp2[y];
+                int n = chgroup->rotation_offset[offset + x];
+                float cosv = sin(n*M_PI / 64.0);                // FIXME: use one table for this
+                float sinv = -cos(n*M_PI / 64.0);
 
-                    chgroup->decorrelation_matrix[y + x * chgroup->num_channels] = (v1 * cosv) + (v2 * sinv);
-                    chgroup->decorrelation_matrix[y + i * chgroup->num_channels] = (v1 * -sinv) + (v2 * cosv);
-                }
+                chgroup->decorrelation_matrix[y + x * chgroup->num_channels] = (v1 * cosv) + (v2 * sinv);
+                chgroup->decorrelation_matrix[y + i * chgroup->num_channels] = (v1 * -sinv) + (v2 * cosv);
             }
+        }
         offset += i;
     }
-
 }
 
 /**


More information about the FFmpeg-soc mailing list