[FFmpeg-cvslog] r31751 - trunk/libswscale/swscale_template.c

Reimar Döffinger Reimar.Doeffinger
Tue Jul 20 19:02:07 CEST 2010


On Sun, Jul 18, 2010 at 11:39:57PM +0200, darkshikari wrote:
> Modified: trunk/libswscale/swscale_template.c
> ==============================================================================
> --- trunk/libswscale/swscale_template.c	Sun Jul 18 20:04:50 2010	(r31750)
> +++ trunk/libswscale/swscale_template.c	Sun Jul 18 23:39:57 2010	(r31751)
> @@ -80,7 +80,7 @@
>          "mov                        (%%"REG_d"), %%"REG_S"  \n\t"\
>          "jb                                  1b             \n\t"\
>          :: "r" (&c->redDither),\
> -        "r" (dest), "g" (width)\
> +        "r" (dest), "g" ((x86_reg)width)\
>          : "%"REG_a, "%"REG_d, "%"REG_S\
>      );
>  
> @@ -142,7 +142,7 @@
>          "mov                        (%%"REG_d"), %%"REG_S"  \n\t"\
>          "jb                                  1b             \n\t"\
>          :: "r" (&c->redDither),\
> -        "r" (dest), "g" (width)\
> +        "r" (dest), "g" ((x86_reg)width)\

This is not correct, "g" just like "m" needs an lvalue,
even though gcc does not care as long as it happens to
use a register anyway.



More information about the ffmpeg-cvslog mailing list