Fixes GCC4 fix by using "g" instead of "mp" as some compilers misscompile
authorGuillaume Poirier <gpoirier@mplayerhq.hu>
Fri, 24 Jun 2005 12:17:30 +0000 (12:17 +0000)
committerGuillaume Poirier <gpoirier@mplayerhq.hu>
Fri, 24 Jun 2005 12:17:30 +0000 (12:17 +0000)
that code othewisei (leading to segfaults).

Originally committed as revision 15814 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/swscale_template.c

index ee9cfbe..3d271ed 100644 (file)
@@ -2547,7 +2547,7 @@ FUNNY_UV_CODE
                "cmp %2, %%"REG_a"              \n\t"
                " jb 1b                         \n\t"
 
-               :: "m" (src1), "m" (dst), "mp" ((long)dstWidth), "m" (xInc_shr16), "m" (xInc_mask),
+               :: "m" (src1), "m" (dst), "g" ((long)dstWidth), "m" (xInc_shr16), "m" (xInc_mask),
                "r" (src2)
                : "%"REG_a, "%"REG_b, "%ecx", "%"REG_D, "%esi"
                );