[FFmpeg-devel] failed to compile swscale_template.c under x86_64-w64-mingw32

Michael Niedermayer michaelni
Fri Jan 1 22:05:54 CET 2010


On Fri, Jan 01, 2010 at 02:35:31PM +0800, zhou drangon wrote:
> hi,
> 
> I try to cross compile ffmpeg svn trunk using x86_64-w64-mingw32
> toolchain, and got the following error :
> 
> swscale.s: Assembler messages:
> swscale.s:15700: Error: suffix or operands invalid for `cmp'
> 
> the temp generated asm code is :
> 
>  # 2479 "/compile/mingw-w64-dgn/lib_source/ffmpeg/libswscale/swscale_template.c"
> 1
>     xor %rax, %rax
>     xor %rdx, %rdx
>     xorl    %ecx, %ecx
>     .align 1 << 4
>     1:
>     mov        104(%rsp), %rsi
>     movzbl  (%rsi, %rdx), %edi
>     movzbl 1(%rsi, %rdx), %esi
>     subl    %edi, %esi
>     imull   %ecx, %esi
>     shll      $16, %edi
>     addl    %edi, %esi
>     mov        88(%rsp), %rdi
>     shrl       $9, %esi
>     movw     %si, (%rdi, %rax, 2)
>     movzbl    (%r9, %rdx), %edi
>     movzbl   1(%r9, %rdx), %esi
>     subl    %edi, %esi
>     imull   %ecx, %esi
>     shll      $16, %edi
>     addl    %edi, %esi
>     mov        88(%rsp), %rdi
>     shrl       $9, %esi
>     movw     %si, (5120*2)(%rdi, %rax, 2)
>     addw       46(%rsp), %cx
>     adc        (%rsp), %rdx
>     add        $1, %rax
>     cmp        %r8d, %rax              # **** this line cause error
>      jb        1b
> 
> it seems that this is caused by "g" (dstWidth), when dstWidth 's type
> is long which is 4bytes under windows.

patch welcome
and note this list is for development of ffmpeg (no development no patch
your mail would be off topic bugreports should go to our bug tracker)

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100101/0faeb8cf/attachment.pgp>



More information about the ffmpeg-devel mailing list