aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-09-01 15:35:44 -0300
committerJames Almer <jamrial@gmail.com>2024-09-01 15:43:18 -0300
commit01f2d95fbf9273ac1701e2779d2d81d3b7010a34 (patch)
treef60aa1932ee875f3a8d8c600be318b10ca57afcf /libavcodec
parent00b64fca55a3a009c9d0e391c85f4fd3291e5d12 (diff)
downloadffmpeg-01f2d95fbf9273ac1701e2779d2d81d3b7010a34.tar.gz
x86/h264_weight: don't do arithmetic right shift of a 32bit values in 64bit registers
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/x86/h264_weight.asm4
1 files 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: