summaryrefslogtreecommitdiff
path: root/libavcodec/fft.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-03-21 17:52:34 +0000
committerMans Rullgard <mans@mansr.com>2011-04-02 21:06:07 +0100
commitbc154882e11f4a218cc8cfb10ae0b4cbc83b5f9f (patch)
tree906260b2356f1c6bad4740ed21d8330806e195fb /libavcodec/fft.c
parented5fcd60b2d1d4993e2094c9836dedb8ef9b2ed3 (diff)
Fixed-point MDCT with 32-bit unscaled output
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/fft.c')
-rw-r--r--libavcodec/fft.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/fft.c b/libavcodec/fft.c
index ff5d34baf3..19da4830a9 100644
--- a/libavcodec/fft.c
+++ b/libavcodec/fft.c
@@ -123,6 +123,9 @@ av_cold int ff_fft_init(FFTContext *s, int nbits, int inverse)
if (ARCH_ARM) ff_fft_init_arm(s);
if (HAVE_ALTIVEC) ff_fft_init_altivec(s);
if (HAVE_MMX) ff_fft_init_mmx(s);
+ if (CONFIG_MDCT) s->mdct_calcw = s->mdct_calc;
+#else
+ if (CONFIG_MDCT) s->mdct_calcw = ff_mdct_calcw_c;
#endif
for(j=4; j<=nbits; j++) {