Mercurial > libavcodec.hg
diff wma.c @ 10174:89cd870ca180 libavcodec
Add two more sizes to ff_sine_windows[] and also pad it with NULLs so
that FF_ELEMS(ff_sine_windows[x]) == 1 << x.
Fix issue 1384.
author | vitor |
---|---|
date | Tue, 15 Sep 2009 16:18:16 +0000 |
parents | 01ccb357a33c |
children | ab687351bfef |
line wrap: on
line diff
--- a/wma.c Tue Sep 15 15:06:04 2009 +0000 +++ b/wma.c Tue Sep 15 16:18:16 2009 +0000 @@ -341,8 +341,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[s->frame_len_bits - i - 7], n); - s->windows[i] = ff_sine_windows[s->frame_len_bits - i - 7]; + ff_sine_window_init(ff_sine_windows[s->frame_len_bits - i], n); + s->windows[i] = ff_sine_windows[s->frame_len_bits - i]; } s->reset_block_lengths = 1;