Skip to content

Commit 01f2d95

Browse files
committed
x86/h264_weight: don't do arithmetic right shift of a 32bit values in 64bit registers
Signed-off-by: James Almer <[email protected]>
1 parent 00b64fc commit 01f2d95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libavcodec/x86/h264_weight.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ BIWEIGHT_FUNC_MM 16, 8
206206
cglobal h264_biweight_%1, 7, 8, %2
207207
BIWEIGHT_SETUP
208208
movifnidn r3d, r3m
209-
sar r3, 1
209+
sar r3d, 1
210210
lea r4, [r2*2]
211211
.nextrow:
212212
BIWEIGHT_STEPA 0, 1, 0
@@ -264,7 +264,7 @@ INIT_XMM ssse3
264264
cglobal h264_biweight_8, 7, 8, 8
265265
BIWEIGHT_SETUP
266266
movifnidn r3d, r3m
267-
sar r3, 1
267+
sar r3d, 1
268268
lea r4, [r2*2]
269269

270270
.nextrow:

0 commit comments

Comments
 (0)