aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wma.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2009-09-15 16:18:16 +0000
committerVitor Sessak <vitor1001@gmail.com>2009-09-15 16:18:16 +0000
commit6776061b04b6f9f669d8ec59f6112e8a9b1dad92 (patch)
tree6b2e9e739877b48d5dc177ef1572c060e3137ffa /libavcodec/wma.c
parent05db409c280acc22362c2e79ea67abe3873043a5 (diff)
downloadffmpeg-6776061b04b6f9f669d8ec59f6112e8a9b1dad92.tar.gz
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. Originally committed as revision 19862 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wma.c')
-rw-r--r--libavcodec/wma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wma.c b/libavcodec/wma.c
index 4fc492243f..7f8b3b4ac2 100644
--- a/libavcodec/wma.c
+++ b/libavcodec/wma.c
@@ -341,8 +341,8 @@ int ff_wma_init(AVCodecContext *avctx, int flags2)
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;