[FFmpeg-devel] [PATCH][RFC] Fix MMX rgb24 to yuv conversion with gcc 4.6

Ronald S. Bultje rsbultje
Sun Feb 13 03:45:49 CET 2011


Hi,

On Sat, Feb 12, 2011 at 7:20 PM, Mans Rullgard <mans at mansr.com> wrote:
> 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, though
> a better solution is perhaps possible.
> ---
> ?libswscale/swscale_template.c | ? 16 ++++++++--------
> ?1 files changed, 8 insertions(+), 8 deletions(-)

After IRC discussion, could you test the attached? Disassembly
suggests this does what the original code is trying to do.

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-swscale-gcc46-compile.patch
Type: application/octet-stream
Size: 2793 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110212/a8ac2a27/attachment.obj>



More information about the ffmpeg-devel mailing list