[FFmpeg-soc] [soc]: r4367 - wmapro/wma3dec.c
faust3
subversion at mplayerhq.hu
Mon Jun 1 15:09:24 CEST 2009
Author: faust3
Date: Mon Jun 1 15:09:24 2009
New Revision: 4367
Log:
factor out the sine window index
Modified:
wmapro/wma3dec.c
Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c Mon Jun 1 13:45:45 2009 (r4366)
+++ wmapro/wma3dec.c Mon Jun 1 15:09:24 2009 (r4367)
@@ -363,10 +363,10 @@ static av_cold int wma_decode_init(AVCod
/** init MDCT windows: simple sinus window */
for(i=0 ; i<BLOCK_NB_SIZES ; i++) {
- int n;
- n = 1 << (BLOCK_MAX_BITS - i);
- ff_sine_window_init(ff_sine_windows[BLOCK_MAX_BITS - i - 7], n);
- s->windows[BLOCK_NB_SIZES-i-1] = ff_sine_windows[BLOCK_MAX_BITS - i - 7];
+ const int n = 1 << (BLOCK_MAX_BITS - i);
+ const int win_idx = BLOCK_MAX_BITS - i - 7;
+ ff_sine_window_init(ff_sine_windows[win_idx], n);
+ s->windows[BLOCK_NB_SIZES-i-1] = ff_sine_windows[win_idx];
}
/** calculate subwoofer cutoff values */
More information about the FFmpeg-soc
mailing list