diff options
author | Robert Swain | 2008-08-14 14:36:22 +0000 |
---|---|---|
committer | Robert Swain | 2008-08-14 14:36:22 +0000 |
commit | ece6b83c3e3da6fc009d3a931e866ffcb966c6ee (patch) | |
tree | 7b5654cb3dc1a21d4f32094f5a9d8d74830fa849 /libavcodec/wma.c | |
parent | 7139bfa8fe47760864a3a25953d807271f950bb6 (diff) |
Change wma.c to use the ff_sine_window_init() from mdct.c
Originally committed as revision 14757 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wma.c')
-rw-r--r-- | libavcodec/wma.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavcodec/wma.c b/libavcodec/wma.c index e257aed319..c0261b1175 100644 --- a/libavcodec/wma.c +++ b/libavcodec/wma.c @@ -301,14 +301,10 @@ int ff_wma_init(AVCodecContext * avctx, int flags2) /* init MDCT windows : simple sinus window */ for(i = 0; i < s->nb_block_sizes; i++) { - int n, j; - float alpha; + int n; n = 1 << (s->frame_len_bits - i); window = av_malloc(sizeof(float) * n); - alpha = M_PI / (2.0 * n); - for(j=0;j<n;j++) { - window[j] = sin((j + 0.5) * alpha); - } + ff_sine_window_init(window, n); s->windows[i] = window; } |