[FFmpeg-cvslog] x86/h264_weight: don't do arithmetic right shift of a 32bit values in 64bit registers
James Almer
git at videolan.org
Sun Sep 1 21:44:15 EEST 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Sep 1 15:35:44 2024 -0300| [01f2d95fbf9273ac1701e2779d2d81d3b7010a34] | committer: James Almer
x86/h264_weight: don't do arithmetic right shift of a 32bit values in 64bit registers
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01f2d95fbf9273ac1701e2779d2d81d3b7010a34
---
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:
More information about the ffmpeg-cvslog
mailing list