changeset 2806:cbb62e07bc0e

yuy2toyv12 bugfix
author michael
date Sun, 11 Nov 2001 00:50:40 +0000
parents 478202620831
children cfc61eef5a66
files postproc/rgb2rgb.c postproc/rgb2rgb_template.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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