[FFmpeg-devel] [PATCH] patch to fix libswscale build failed under x86_64-w64-mingw32

zhou drangon drangon.zhou
Sat Jan 2 11:10:40 CET 2010


libswscale build failed under x86_64-w64-mingw32, error message :
swscale.s: Assembler messages:
swscale.s:15700: Error: suffix or operands invalid for `cmp'

the following is the patch :

Index: swscale_template.c
--- swscale_template.c  (revision 30166)
+++ swscale_template.c  (working copy)
@@ -2502,7 +2502,7 @@
 /* GCC 3.3 makes MPlayer crash on IA-32 machines when using "g" operand here,
 which is needed to support GCC 4.0. */
 #if ARCH_X86_64 && AV_GCC_VERSION_AT_LEAST(3,4)
-            :: "m" (src1), "m" (dst), "g" (dstWidth), "m"
(xInc_shr16), "m" (xInc_mask),
+            :: "m" (src1), "m" (dst), "g" ((x86_reg)dstWidth), "m"
(xInc_shr16), "m" (xInc_mask),
             :: "m" (src1), "m" (dst), "m" (dstWidth), "m"
(xInc_shr16), "m" (xInc_mask),


homepage : http://www.drangon.org/
mingw stuff : http://www.drangon.org/mingw/
mingw stuff 2 : http://code.google.com/p/mingw-w64-dgn/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libswscale-mingw-w64.patch
Type: application/octet-stream
Size: 672 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100102/d93e9922/attachment.obj>

More information about the ffmpeg-devel mailing list