[FFmpeg-devel] [PATCH 4/5] avcodec/fft_template: Only check for FF_FFT_PERM_AVX on ARCH_X86

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Thu Jan 7 01:13:07 EET 2021


Also do it for FFT_FLOAT only, as this is the only combination for which
it can be set.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavcodec/fft_template.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/fft_template.c b/libavcodec/fft_template.c
index 9d125de073..ddde63714e 100644
--- a/libavcodec/fft_template.c
+++ b/libavcodec/fft_template.c
@@ -251,7 +251,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 {\
-- 
2.25.1



More information about the ffmpeg-devel mailing list