summaryrefslogtreecommitdiff
path: root/libavcodec/arm
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-08-29 07:09:03 +0200
committerLynne <dev@lynne.ee>2022-08-29 07:13:43 +0200
commitf99d15cca0f6ceedb4f2f38d67a52dacc9556fc7 (patch)
tree7992f81ab867591101e495719541e4f07a761265 /libavcodec/arm
parentf5c5c04c1452274d223f663bd8ebc9d721acdf0e (diff)
arm/fft: disable NEON optimizations for 131072pt transforms
This has been broken since the start, and it was only discovered when I started testing my replacement for the FFT. Disable it, since there's no point in fixing slower code that's about to be removed anyway. The vfp version is not affected.
Diffstat (limited to 'libavcodec/arm')
-rw-r--r--libavcodec/arm/fft_init_arm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/arm/fft_init_arm.c b/libavcodec/arm/fft_init_arm.c
index 331bd65e5c..8ae22dfb4e 100644
--- a/libavcodec/arm/fft_init_arm.c
+++ b/libavcodec/arm/fft_init_arm.c
@@ -48,8 +48,10 @@ av_cold void ff_fft_init_arm(FFTContext *s)
if (have_neon(cpu_flags)) {
#if CONFIG_FFT
- s->fft_permute = ff_fft_permute_neon;
- s->fft_calc = ff_fft_calc_neon;
+ if (s->nbits < 17) {
+ s->fft_permute = ff_fft_permute_neon;
+ s->fft_calc = ff_fft_calc_neon;
+ }
#endif
#if CONFIG_MDCT
s->imdct_calc = ff_imdct_calc_neon;