Browse Source

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
tags/v0.5
Robert Swain 17 years ago
parent
commit
ece6b83c3e
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      libavcodec/wma.c

+ 2
- 6
libavcodec/wma.c View File

@@ -301,14 +301,10 @@ int ff_wma_init(AVCodecContext * avctx, int flags2)


/* init MDCT windows : simple sinus window */ /* init MDCT windows : simple sinus window */
for(i = 0; i < s->nb_block_sizes; i++) { for(i = 0; i < s->nb_block_sizes; i++) {
int n, j;
float alpha;
int n;
n = 1 << (s->frame_len_bits - i); n = 1 << (s->frame_len_bits - i);
window = av_malloc(sizeof(float) * n); 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; s->windows[i] = window;
} }




Loading…
Cancel
Save