summaryrefslogtreecommitdiffstats
path: root/libavcodec/mips/fft_mips.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-03-04 00:31:45 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-04 13:51:42 +0100
commitae76b842213380758adf4828b8602ac57a7492e4 (patch)
tree55355fbfe28fe43ec1770d22ddf634de6b67dca0 /libavcodec/mips/fft_mips.c
parent362e05f1ea05ef7f9892f0e888323136ba77dd94 (diff)
downloadffmpeg-streaming-ae76b842213380758adf4828b8602ac57a7492e4.zip
ffmpeg-streaming-ae76b842213380758adf4828b8602ac57a7492e4.tar.gz
avcodec: Extend fft to size 2^17
Asked-for-by: durandal_1707 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mips/fft_mips.c')
-rw-r--r--libavcodec/mips/fft_mips.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/mips/fft_mips.c b/libavcodec/mips/fft_mips.c
index cf008c6..e00778b 100644
--- a/libavcodec/mips/fft_mips.c
+++ b/libavcodec/mips/fft_mips.c
@@ -500,7 +500,10 @@ av_cold void ff_fft_init_mips(FFTContext *s)
{
int n=0;
- ff_fft_lut_init(ff_fft_offsets_lut, 0, 1 << 16, &n);
+ if (s->nbits > 16)
+ return;
+
+ ff_fft_lut_init(ff_fft_offsets_lut, 0, 1 << 17, &n);
ff_init_ff_cos_tabs(16);
#if HAVE_INLINE_ASM
OpenPOWER on IntegriCloud