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)
committerReinhard Tartler <siretart@tauware.de>
Sat, 5 Nov 2011 08:04:11 +0000 (09:04 +0100)
commit8135c3552894b096a9f9989dc310ece7bb529403
treea795b612016f4415997fc0a689b5dd327dd7cf86
parent4f07a3aa2c6b7356c28646692261aa9080605fcc
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>
(cherry picked from commit f344903ca5ce28a833fdd656bc1ed5b16d97e7e9)

Conflicts:

libswscale/swscale_template.c

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libswscale/swscale_template.c