Commit 5688c8a1 authored by superdump's avatar superdump

Change wma.c to use the ff_sine_window_init() from mdct.c


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14757 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9576034d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment