From 034b7cf5339e576080e61fd53f566387687ff4d6 Mon Sep 17 00:00:00 2001 From: sekrit-twc Date: Thu, 24 Oct 2024 20:55:26 -0700 Subject: [PATCH] resize: fix SSE2 vertical resizer with >8 taps --- src/zimg/resize/x86/resize_impl_sse2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zimg/resize/x86/resize_impl_sse2.cpp b/src/zimg/resize/x86/resize_impl_sse2.cpp index 27eab099..a49858f8 100644 --- a/src/zimg/resize/x86/resize_impl_sse2.cpp +++ b/src/zimg/resize/x86/resize_impl_sse2.cpp @@ -404,7 +404,7 @@ class ResizeImplV_U16_SSE2 : public ResizeImplV { } gather_8_lines(top + k_end); - resize_line_v_u16_sse2_jt_final[filter_width % 8](filter_data + k_end, XARGS); + resize_line_v_u16_sse2_jt_final[filter_width - k_end - 1](filter_data + k_end, XARGS); } #undef XARGS }