From 5dfe4edad63971d669ae456b0bc40ef9364cca80 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Tue, 8 Dec 2015 16:20:19 +0100 Subject: x86_64: int32_to_float_fmul_scalar sign extend integer length --- libavcodec/x86/fmtconvert.asm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/x86') diff --git a/libavcodec/x86/fmtconvert.asm b/libavcodec/x86/fmtconvert.asm index 727daa9774..b9a78a5720 100644 --- a/libavcodec/x86/fmtconvert.asm +++ b/libavcodec/x86/fmtconvert.asm @@ -37,6 +37,9 @@ cglobal int32_to_float_fmul_scalar, 4, 4, %1, dst, src, mul, len SWAP 0, 2 %elif ARCH_X86_32 movss m0, mulm +%endif +%if ARCH_X86_64 + movsxd lenq, lend %endif SPLATD m0 shl lenq, 2 -- cgit v1.2.3