[FFmpeg-cvslog] avcodec/fft_template: Only check for FF_FFT_PERM_AVX on ARCH_X86

Andreas Rheinhardt git at videolan.org
Fri Jan 8 07:58:21 EET 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Wed Jan  6 21:09:14 2021 +0100| [a454a0c14fa2c2bf712f282a7fcc574bdc90a327] | committer: Andreas Rheinhardt

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 at lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a454a0c14fa2c2bf712f282a7fcc574bdc90a327
---

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



More information about the ffmpeg-cvslog mailing list