diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c
index 05f2961ec5b62b63faeeb978fdd85a9bcbc0fba7..c91e9cd5fad3758a24512bd8ce8e052706bcb2b7 100644
--- a/postproc/swscale_template.c
+++ b/postproc/swscale_template.c
@@ -2547,7 +2547,7 @@ FUNNY_UV_CODE
 		"cmp %2, %%"REG_a"		\n\t"
 		" jb 1b				\n\t"
 
-		:: "m" (src1), "m" (dst), "g" ((long)dstWidth), "m" (xInc_shr16), "m" (xInc_mask),
+		:: "m" (src1), "m" (dst), "m" ((long)dstWidth), "m" (xInc_shr16), "m" (xInc_mask),
 		"r" (src2)
 		: "%"REG_a, "%"REG_b, "%ecx", "%"REG_D, "%esi"
 		);