[FFmpeg-cvslog] avfilter/x86/vf_colordetect_init: don't enable ASM functions on targets where it's known they will be slower
    James Almer 
    git at videolan.org
       
    Mon Jul 21 22:59:59 EEST 2025
    
    
  
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Jul 21 16:57:20 2025 -0300| [70fc4e59098006941860b6e929baaf020b679b45] | committer: James Almer
avfilter/x86/vf_colordetect_init: don't enable 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=70fc4e59098006941860b6e929baaf020b679b45
---
 libavfilter/x86/vf_colordetect_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/x86/vf_colordetect_init.c b/libavfilter/x86/vf_colordetect_init.c
index 62a7e87388..8253dc1d17 100644
--- a/libavfilter/x86/vf_colordetect_init.c
+++ b/libavfilter/x86/vf_colordetect_init.c
@@ -82,7 +82,7 @@ av_cold void ff_color_detect_dsp_init_x86(FFColorDetectDSPContext *dsp, int dept
 #if HAVE_X86ASM
     int cpu_flags = av_get_cpu_flags();
 #if HAVE_AVX2_EXTERNAL
-    if (EXTERNAL_AVX2(cpu_flags)) {
+    if (EXTERNAL_AVX2_FAST(cpu_flags)) {
         dsp->detect_range = depth > 8 ? detect_range16_avx2 : detect_range_avx2;
         if (color_range == AVCOL_RANGE_JPEG) {
             dsp->detect_alpha = depth > 8 ? detect_alpha16_full_avx2 : detect_alpha_full_avx2;
    
    
More information about the ffmpeg-cvslog
mailing list