>From a7f26394d136fc55ac7d70525421f4ec1d875a52 Mon Sep 17 00:00:00 2001
From: Oka Motofumi <[email protected]>
Date: Mon, 9 Jan 2012 15:33:32 +0900
Subject: [PATCH] win64: fix builds broken by 2170a0e

Add another type of declaration for win64, as it needs 'dword' for operand
2.
---
 libswscale/x86/input.asm |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/libswscale/x86/input.asm b/libswscale/x86/input.asm
index 4bdb575..c4287a2 100644
--- a/libswscale/x86/input.asm
+++ b/libswscale/x86/input.asm
@@ -135,7 +135,11 @@ cglobal %2ToY, 3, 3, %1, dst, src, w
 %macro YUYV_TO_UV_FN 2-3
 cglobal %2ToUV, 3, 4, %1, dstU, dstV, src, w
 %ifdef ARCH_X86_64
+%ifdef WIN64
+    movsxd         wq, dword r4m
+%else
     movsxd         wq, r4m
+%endif
 %else ; x86-32
     mov            wq, r4m
 %endif
@@ -190,7 +194,11 @@ cglobal %2ToUV, 3, 4, %1, dstU, dstV, src, w
 %macro NVXX_TO_UV_FN 2
 cglobal %2ToUV, 3, 4, %1, dstU, dstV, src, w
 %ifdef ARCH_X86_64
+%ifdef WIN64
+    movsxd         wq, dword r4m
+%else
     movsxd         wq, r4m
+%endif
 %else ; x86-32
     mov            wq, r4m
 %endif
-- 
1.7.8.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to