after 2170a0e, swscale can't compile for win64.
I told this to Ronald on IRC.
then he send me a patch, said "if that fixes it, feel free to throw it on
the ML", and went to bed...


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

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