[FFmpeg-devel] [PATCH] patch to fix libswscale build failed under x86_64-w64-mingw32
Reimar Döffinger
Reimar.Doeffinger
Sat Jan 2 12:30:18 CET 2010
On Sat, Jan 02, 2010 at 06:10:40PM +0800, zhou drangon wrote:
> hi,
>
> 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),
I don't think you can use "g" on the result of a cast, at least llvm
does (did?) tend to refuse to compile that.
More information about the ffmpeg-devel
mailing list