Fix MMX rgb24 to yuv conversion with gcc 4.6
authorMans Rullgard <mans@mansr.com>
Sun, 13 Feb 2011 00:19:06 +0000 (00:19 +0000)
committerMans Rullgard <mans@mansr.com>
Sun, 13 Feb 2011 01:42:32 +0000 (01:42 +0000)
commitf344903ca5ce28a833fdd656bc1ed5b16d97e7e9
tree365561c435ff5e829f9373cd71cc19f3c822b851
parent44b11207248c6ca6edb7d3469c0fbdca45dbfa70
Fix MMX rgb24 to yuv conversion with gcc 4.6

When built with gcc 4.6, the MMX rgb24 to yuv conversion gives
wrong output.  The compiler produces this warning:

libswscale/swscale_template.c:1885:5: warning: use of memory input without lvalue in asm operand 4 is deprecated

Changing the memory operand to a register makes it work.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libswscale/swscale_template.c