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 }