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

faust3 subversion at mplayerhq.hu
Sun Mar 1 21:57:34 CET 2009


Author: faust3
Date: Sun Mar  1 21:57:34 2009
New Revision: 4142

Log:
10l: fixed decoding on x86_64

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Sun Mar  1 14:48:44 2009	(r4141)
+++ wmapro/wma3dec.c	Sun Mar  1 21:57:34 2009	(r4142)
@@ -336,7 +336,7 @@ static av_cold int wma3_decode_init(AVCo
     }
 
     /** set up decorrelation matrixes */
-    s->def_decorrelation_mat = av_mallocz(sizeof(int) * (s->num_channels + 1));
+    s->def_decorrelation_mat = av_mallocz(sizeof(float*) * (s->num_channels + 1));
     if(!s->def_decorrelation_mat){
         av_log(avctx, AV_LOG_ERROR, "failed to allocate decorrelation matrix\n");
         wma3_decode_end(avctx);
@@ -346,7 +346,7 @@ static av_cold int wma3_decode_init(AVCo
     s->def_decorrelation_mat[0] = 0;
     for(i=1;i<=s->num_channels;i++){
         const float* tab = ff_wma3_default_decorrelation_matrices;
-        s->def_decorrelation_mat[i] = av_mallocz(sizeof(float) * i);
+        s->def_decorrelation_mat[i] = av_mallocz(sizeof(float*) * i);
         if(!s->def_decorrelation_mat[i]){
             av_log(avctx, AV_LOG_ERROR, "failed to set up decorrelation matrix\n");
             wma3_decode_end(avctx);



More information about the FFmpeg-soc mailing list