From a454a0c14fa2c2bf712f282a7fcc574bdc90a327 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 6 Jan 2021 21:09:14 +0100 Subject: avcodec/fft_template: Only check for FF_FFT_PERM_AVX on ARCH_X86 Also do it for FFT_FLOAT only, as this is the only combination for which it can be set. Reviewed-by: Lynne Signed-off-by: Andreas Rheinhardt --- libavcodec/fft_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/fft_template.c') diff --git a/libavcodec/fft_template.c b/libavcodec/fft_template.c index 8825e39f79..e807f4b255 100644 --- a/libavcodec/fft_template.c +++ b/libavcodec/fft_template.c @@ -248,7 +248,7 @@ av_cold int ff_fft_init(FFTContext *s, int nbits, int inverse) #endif /* FFT_FIXED_32 */ - if (s->fft_permutation == FF_FFT_PERM_AVX) { + if (ARCH_X86 && FFT_FLOAT && s->fft_permutation == FF_FFT_PERM_AVX) { fft_perm_avx(s); } else { #define PROCESS_FFT_PERM_SWAP_LSBS(num) do {\ -- cgit v1.2.3