aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmaprodec.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/wmaprodec.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/wmaprodec.c')
-rw-r--r--libavcodec/wmaprodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 425cc0ba75..2a45312ec0 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -426,7 +426,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
/** init MDCT windows: simple sinus window */
for (i = 0; i < WMAPRO_BLOCK_SIZES; i++) {
const int n = 1 << (WMAPRO_BLOCK_MAX_BITS - i);
- const int win_idx = WMAPRO_BLOCK_MAX_BITS - i - 7;
+ const int win_idx = WMAPRO_BLOCK_MAX_BITS - i;
ff_sine_window_init(ff_sine_windows[win_idx], n);
s->windows[WMAPRO_BLOCK_SIZES - i - 1] = ff_sine_windows[win_idx];
}