From 01f2d95fbf9273ac1701e2779d2d81d3b7010a34 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sun, 1 Sep 2024 15:35:44 -0300 Subject: [PATCH] x86/h264_weight: don't do arithmetic right shift of a 32bit values in 64bit registers Signed-off-by: James Almer --- libavcodec/x86/h264_weight.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/x86/h264_weight.asm b/libavcodec/x86/h264_weight.asm index 66353d1a9c..5524f3e28c 100644 --- a/libavcodec/x86/h264_weight.asm +++ b/libavcodec/x86/h264_weight.asm @@ -206,7 +206,7 @@ BIWEIGHT_FUNC_MM 16, 8 cglobal h264_biweight_%1, 7, 8, %2 BIWEIGHT_SETUP movifnidn r3d, r3m - sar r3, 1 + sar r3d, 1 lea r4, [r2*2] .nextrow: BIWEIGHT_STEPA 0, 1, 0 @@ -264,7 +264,7 @@ INIT_XMM ssse3 cglobal h264_biweight_8, 7, 8, 8 BIWEIGHT_SETUP movifnidn r3d, r3m - sar r3, 1 + sar r3d, 1 lea r4, [r2*2] .nextrow: