# HG changeset patch # User michael # Date 1005439840 0 # Node ID cbb62e07bc0e6e8658a3159e90aeab74745e7072 # Parent 478202620831fbb74cceba56466e8db9ddd9365a yuy2toyv12 bugfix diff -r 478202620831 -r cbb62e07bc0e postproc/rgb2rgb.c --- a/postproc/rgb2rgb.c Sun Nov 11 00:31:34 2001 +0000 +++ b/postproc/rgb2rgb.c Sun Nov 11 00:50:40 2001 +0000 @@ -758,6 +758,9 @@ : "memory", "%eax" ); + ydst += lumStride; + src += srcStride; + asm volatile( "xorl %%eax, %%eax \n\t" ".balign 16 \n\t" @@ -781,7 +784,7 @@ "cmpl %4, %%eax \n\t" " jb 1b \n\t" - ::"r"(src+srcStride), "r"(ydst+lumStride), "r"(udst), "r"(vdst), "r" (chromWidth) + ::"r"(src), "r"(ydst), "r"(udst), "r"(vdst), "r" (chromWidth) : "memory", "%eax" ); #else diff -r 478202620831 -r cbb62e07bc0e postproc/rgb2rgb_template.c --- a/postproc/rgb2rgb_template.c Sun Nov 11 00:31:34 2001 +0000 +++ b/postproc/rgb2rgb_template.c Sun Nov 11 00:50:40 2001 +0000 @@ -758,6 +758,9 @@ : "memory", "%eax" ); + ydst += lumStride; + src += srcStride; + asm volatile( "xorl %%eax, %%eax \n\t" ".balign 16 \n\t" @@ -781,7 +784,7 @@ "cmpl %4, %%eax \n\t" " jb 1b \n\t" - ::"r"(src+srcStride), "r"(ydst+lumStride), "r"(udst), "r"(vdst), "r" (chromWidth) + ::"r"(src), "r"(ydst), "r"(udst), "r"(vdst), "r" (chromWidth) : "memory", "%eax" ); #else