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

faust3 subversion at mplayerhq.hu
Tue Feb 3 19:06:34 CET 2009


Author: faust3
Date: Tue Feb  3 19:06:34 2009
New Revision: 4016

Log:
10l: zero output buffer when no coefficients are transmitted

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Tue Feb  3 02:02:27 2009	(r4015)
+++ wmapro/wma3dec.c	Tue Feb  3 19:06:34 2009	(r4016)
@@ -1301,6 +1301,13 @@ static int wma_decode_subframe(WMA3Decod
             for(b=0;b<subframe_len;b++)
                 dst[b] /= subframe_len / 2;     // FIXME: try to remove this scaling
         }
+    }else{
+        for(i=0;i<s->channels_for_cur_subframe;i++){
+            int c = s->channel_indexes_for_cur_subframe[i];
+            float* dst;
+            dst = &s->channel[c].out[s->samples_per_frame/2  + s->channel[c].subframe_offset[s->channel[c].cur_subframe]];
+            memset(dst,0,subframe_len * sizeof(float));
+        }
     }
 
     wma_window(s);



More information about the FFmpeg-soc mailing list