aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-06 21:09:14 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-08 06:52:51 +0100
commita454a0c14fa2c2bf712f282a7fcc574bdc90a327 (patch)
tree1f2530b4817a6cac90c94f949b77cb0f25b25e8f /libavcodec
parent482aeda8bfe641239c901261a646ab07275da50b (diff)
downloadffmpeg-a454a0c14fa2c2bf712f282a7fcc574bdc90a327.tar.gz
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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/fft_template.c2
1 files changed, 1 insertions, 1 deletions
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 {\