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 <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2021-01-06 21:09:14 +01:00
parent 482aeda8bf
commit a454a0c14f

View File

@ -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 {\