Mercurial > libavcodec.hg
changeset 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 | bcc058a7b12e |
children | c4e4df98b703 |
files | wma.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/wma.c Sun Aug 24 05:56:23 2008 +0000 +++ b/wma.c Sun Aug 24 08:31:19 2008 +0000 @@ -302,8 +302,8 @@ for(i = 0; i < s->nb_block_sizes; i++) { int n; n = 1 << (s->frame_len_bits - i); - ff_sine_window_init(ff_sine_windows[i], n); - s->windows[i] = ff_sine_windows[i]; + ff_sine_window_init(ff_sine_windows[s->frame_len_bits - i - 7], n); + s->windows[i] = ff_sine_windows[s->frame_len_bits - i - 7]; } s->reset_block_lengths = 1;