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

faust3 subversion at mplayerhq.hu
Sat May 30 15:20:05 CEST 2009


Author: faust3
Date: Sat May 30 15:20:05 2009
New Revision: 4332

Log:
use memset to enable transformations for all bands

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Sat May 30 15:11:37 2009	(r4331)
+++ wmapro/wma3dec.c	Sat May 30 15:20:05 2009	(r4332)
@@ -737,9 +737,7 @@ static int wma_decode_channel_transform(
 
             /** decode transform on / off */
             if(chgroup->num_channels <= 1 ||  ((chgroup->no_rotation != 1 || chgroup->transform == 2) && chgroup->no_rotation)){
-                int i;
-                for(i=0;i<s->num_bands;i++)
-                    chgroup->transform_band[i] = 1;
+                memset(chgroup->transform_band,1,s->num_bands);
             }else{
                 /** transform can be enabled for individual bands */
                 if(!get_bits1(&s->gb)){
@@ -748,9 +746,7 @@ static int wma_decode_channel_transform(
                         chgroup->transform_band[i] = get_bits1(&s->gb);
                     }
                 }else{
-                    int i;
-                    for(i=0;i<s->num_bands;i++)
-                        chgroup->transform_band[i] = 1;
+                    memset(chgroup->transform_band,1,s->num_bands);
                 }
             }
             remaining_channels -= chgroup->num_channels;


More information about the FFmpeg-soc mailing list