The branch, master has been updated
via f3346ca6f7d8249738ae0d9544b62be5c51ccfcd (commit)
from a75b15a4ab88ae26427b7dd518983cdc13a4b4b5 (commit)
- Log -----------------------------------------------------------------
commit f3346ca6f7d8249738ae0d9544b62be5c51ccfcd
Author: Niklas Haas <[email protected]>
AuthorDate: Mon Nov 17 10:50:54 2025 +0100
Commit: Niklas Haas <[email protected]>
CommitDate: Tue Nov 25 22:13:57 2025 +0000
avfilter/x86/f_ebur128: only use filter_channels_avx for >= 2 channels
The approach of this ASM routine is to process two channels at a time using
AVX instructions. Obviously, there is no point in doing this if there is
only
a single channel; in which case the scalar loop would be better.
Fixes a performance regression when filtering mono audio on certain CPUs,
notably e.g. the Intel N100.
diff --git a/libavfilter/x86/f_ebur128_init.c b/libavfilter/x86/f_ebur128_init.c
index 4a7109746d..6d43b4887f 100644
--- a/libavfilter/x86/f_ebur128_init.c
+++ b/libavfilter/x86/f_ebur128_init.c
@@ -33,7 +33,8 @@ av_cold void ff_ebur128_init_x86(EBUR128DSPContext *dsp, int
nb_channels)
int cpu_flags = av_get_cpu_flags();
if (ARCH_X86_64 && EXTERNAL_AVX(cpu_flags)) {
- dsp->filter_channels = ff_ebur128_filter_channels_avx;
+ if (nb_channels >= 2)
+ dsp->filter_channels = ff_ebur128_filter_channels_avx;
if (nb_channels == 2)
dsp->find_peak = ff_ebur128_find_peak_2ch_avx;
}
-----------------------------------------------------------------------
Summary of changes:
libavfilter/x86/f_ebur128_init.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]