Browse Source

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>
tags/n4.4
Andreas Rheinhardt 5 years ago
parent
commit
a454a0c14f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/fft_template.c

+ 1
- 1
libavcodec/fft_template.c 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 {\


Loading…
Cancel
Save