1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-03 05:10:03 +02:00

x86/h264_weight: don't do arithmetic right shift of a 32bit values in 64bit registers

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-09-01 15:35:44 -03:00
parent 00b64fca55
commit 01f2d95fbf

View File

@ -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: