comparison wma.c @ 7682:a08c1a035386 libavcodec

Fix index to ff_sine_windows[]. Previously the index was usually in reverse order.
author superdump
date Sun, 24 Aug 2008 08:31:19 +0000
parents 30dbefc2d3a5
children 04423b2f6e0b
comparison
equal deleted inserted replaced
7681:bcc058a7b12e 7682:a08c1a035386
300 300
301 /* init MDCT windows : simple sinus window */ 301 /* init MDCT windows : simple sinus window */
302 for(i = 0; i < s->nb_block_sizes; i++) { 302 for(i = 0; i < s->nb_block_sizes; i++) {
303 int n; 303 int n;
304 n = 1 << (s->frame_len_bits - i); 304 n = 1 << (s->frame_len_bits - i);
305 ff_sine_window_init(ff_sine_windows[i], n); 305 ff_sine_window_init(ff_sine_windows[s->frame_len_bits - i - 7], n);
306 s->windows[i] = ff_sine_windows[i]; 306 s->windows[i] = ff_sine_windows[s->frame_len_bits - i - 7];
307 } 307 }
308 308
309 s->reset_block_lengths = 1; 309 s->reset_block_lengths = 1;
310 310
311 if (s->use_noise_coding) { 311 if (s->use_noise_coding) {