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

faust3 subversion at mplayerhq.hu
Sat May 30 23:43:38 CEST 2009


Author: faust3
Date: Sat May 30 23:43:38 2009
New Revision: 4348

Log:
fixed regression that was introduced in r4342

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Sat May 30 22:39:58 2009	(r4347)
+++ wmapro/wma3dec.c	Sat May 30 23:43:38 2009	(r4348)
@@ -741,10 +741,15 @@ static int wma_decode_channel_transform(
                     chgroup->transform = 2;
                     if(get_bits1(&s->gb))
                         wma_decode_decorrelation_matrix(s, chgroup);
-                    else
-                        memcpy(chgroup->decorrelation_matrix,
-                               s->def_decorrelation_mat[chgroup->num_channels],
-                               chgroup->num_channels * chgroup->num_channels * sizeof(float));
+                    else{
+                        int x;
+                        for(x = 0; x < chgroup->num_channels ; x++){
+                            int y;
+                            for(y=0;y< chgroup->num_channels ;y++){
+                                chgroup->decorrelation_matrix[y + x * chgroup->num_channels] = s->def_decorrelation_mat[chgroup->num_channels][x][y];
+                            }
+                        }
+                    }
                 }
             }
 


More information about the FFmpeg-soc mailing list