]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/fft_template: Only check for FF_FFT_PERM_AVX on ARCH_X86
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 6 Jan 2021 20:09:14 +0000 (21:09 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 8 Jan 2021 05:52:51 +0000 (06:52 +0100)
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>
libavcodec/fft_template.c

index 8825e39f792e7e72bde0ab5728f36a754d598540..e807f4b255f3e21b3f4e6f890b98184b6175b447 100644 (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 {\