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

faust3 subversion at mplayerhq.hu
Sun Jun 21 13:21:49 CEST 2009


Author: faust3
Date: Sun Jun 21 13:21:49 2009
New Revision: 4494

Log:
slightly faster sign initialization

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Sun Jun 21 13:12:21 2009	(r4493)
+++ wmapro/wma3dec.c	Sun Jun 21 13:21:49 2009	(r4494)
@@ -665,12 +665,9 @@ static void decode_decorrelation_matrix(
     for (i=0;i<chgroup->num_channels  * (chgroup->num_channels - 1) >> 1;i++)
         rotation_offset[i] = get_bits(&s->gb,6);
 
-    for (i=0;i<chgroup->num_channels;i++) {
-        if (get_bits1(&s->gb)) {
-            chgroup->decorrelation_matrix[chgroup->num_channels * i + i]=  1.0;
-        } else
-            chgroup->decorrelation_matrix[chgroup->num_channels * i + i]= -1.0;
-    }
+    for (i=0;i<chgroup->num_channels;i++)
+        chgroup->decorrelation_matrix[chgroup->num_channels * i + i] =
+                                                get_bits1(&s->gb) ? 1.0 : -1.0;
 
     for (i=1;i<chgroup->num_channels;i++) {
         int x;


More information about the FFmpeg-soc mailing list