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

faust3 subversion at mplayerhq.hu
Sun Jan 11 11:42:29 CET 2009


Author: faust3
Date: Sun Jan 11 11:42:29 2009
New Revision: 3943

Log:
removed some windowing cruft, patch by Benjamin Larsson

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Sun Jan 11 11:36:28 2009	(r3942)
+++ wmapro/wma3dec.c	Sun Jan 11 11:42:29 2009	(r3943)
@@ -1095,7 +1095,7 @@ static void wma_window(WMA3DecodeContext
 //    float* rs = &s->channel[c].out[s->samples_per_frame/2 + s->channel[c].subframe_offset[i]];
 //    printf("Dstart %i %i end %i win %i prev %i\n",s->frame_num+1, start - rs,end -rs,winlen,prev_block_len);
 
-#if 1
+        //FIXME untagle the windowing so dsp functions can be used
         window = s->windows[av_log2(winlen)-BLOCK_MIN_BITS];
         for(x=0;x<len;x++){
             float ts = *start;
@@ -1107,25 +1107,11 @@ static void wma_window(WMA3DecodeContext
             ++start;
             --end;
         }
-#else
-        wma_window2();
-#endif
-
         s->channel[c].prev_block_len = block_len;
     }
 }
 
 
-/**
- * Apply MDCT window and add into output.
- *
- * We ensure that when the windows overlap their squared sum
- * is always 1 (MDCT reconstruction rule).
- */
-
-
-
-
 
 static int wma_decode_subframe(WMA3DecodeContext *s,GetBitContext* gb){
     int offset = s->samples_per_frame;



More information about the FFmpeg-soc mailing list