diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2009-09-15 20:18:16 +0400 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2009-09-15 20:18:16 +0400 |
commit | 6776061b04b6f9f669d8ec59f6112e8a9b1dad92 (patch) | |
tree | 6b2e9e739877b48d5dc177ef1572c060e3137ffa /libavcodec/twinvq.c | |
parent | 05db409c280acc22362c2e79ea67abe3873043a5 (diff) |
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/twinvq.c')
-rw-r--r-- | libavcodec/twinvq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/twinvq.c b/libavcodec/twinvq.c index 02129eb0d3..0d66d63a94 100644 --- a/libavcodec/twinvq.c +++ b/libavcodec/twinvq.c @@ -648,7 +648,7 @@ static void imdct_and_window(TwinContext *tctx, enum FrameType ftype, int wtype, tctx->dsp.vector_fmul_window(out2, prev_buf + (bsize-wsize)/2, buf1 + bsize*j, - ff_sine_windows[av_log2(wsize) - 7], + ff_sine_windows[av_log2(wsize)], 0.0, wsize/2); out2 += wsize; @@ -903,9 +903,9 @@ static av_cold void init_mdct_win(TwinContext *tctx) } - ff_sine_window_init(ff_sine_windows[av_log2(size_m) - 7], size_m ); - ff_sine_window_init(ff_sine_windows[av_log2(size_s/2) - 7], size_s/2); - ff_sine_window_init(ff_sine_windows[av_log2(mtab->size) - 7], mtab->size); + ff_sine_window_init(ff_sine_windows[av_log2(size_m) ], size_m ); + ff_sine_window_init(ff_sine_windows[av_log2(size_s/2) ], size_s/2); + ff_sine_window_init(ff_sine_windows[av_log2(mtab->size)], mtab->size); } /** |