[FFmpeg-cvslog] avfilter/x86/vf_blackdetect_init: don't enable the ASM functions on targets where it's known they will be slower

James Almer git at videolan.org
Fri Jul 18 19:07:47 EEST 2025


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Jul 18 13:01:29 2025 -0300| [ee4ff3f706f5b519bfc2bae37e7371aef2612eb4] | committer: James Almer

avfilter/x86/vf_blackdetect_init: don't enable the ASM functions on targets where it's known they will be slower

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavfilter/x86/vf_blackdetect_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/x86/vf_blackdetect_init.c b/libavfilter/x86/vf_blackdetect_init.c
index 3780072589..412922711c 100644
--- a/libavfilter/x86/vf_blackdetect_init.c
+++ b/libavfilter/x86/vf_blackdetect_init.c
@@ -28,7 +28,7 @@ unsigned ff_blackdetect_16_avx2(const uint8_t *, ptrdiff_t, ptrdiff_t, ptrdiff_t
 av_cold ff_blackdetect_fn ff_blackdetect_get_fn_x86(int depth)
 {
     int cpu_flags = av_get_cpu_flags();
-    if (EXTERNAL_AVX2(cpu_flags))
+    if (EXTERNAL_AVX2_FAST(cpu_flags))
         return depth == 8 ? ff_blackdetect_8_avx2 : ff_blackdetect_16_avx2;
     return NULL;
 }



More information about the ffmpeg-cvslog mailing list