[FFmpeg-devel] [PATCH 2/4] libavfilter/x86/vf_threshold_init: remove condition s->depth == 16

Wu Jianhua jianhua.wu at intel.com
Fri Aug 27 07:51:42 EEST 2021


As we all know the 10bit samples would also be stored as a 16bits type,
the condition judgment will lead the SIMD optimizations to be uninitialized
when the depth is 10.

Signed-off-by: Wu Jianhua <jianhua.wu at intel.com>
---
 libavfilter/x86/vf_threshold_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/x86/vf_threshold_init.c b/libavfilter/x86/vf_threshold_init.c
index 8e42296791..71bde15097 100644
--- a/libavfilter/x86/vf_threshold_init.c
+++ b/libavfilter/x86/vf_threshold_init.c
@@ -48,7 +48,7 @@ av_cold void ff_threshold_init_x86(ThresholdContext *s)
         if (EXTERNAL_AVX2_FAST(cpu_flags)) {
             s->threshold = ff_threshold8_avx2;
         }
-    } else if (s->depth == 16) {
+    } else {
         if (EXTERNAL_SSE4(cpu_flags)) {
             s->threshold = ff_threshold16_sse4;
         }
-- 
2.17.1



More information about the ffmpeg-devel mailing list