This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: libv4l: fixup konica yuv420 conversion code
Author:  Hans de Goede <[email protected]>
Date:    Sun Jul 4 12:56:20 2010 +0200

Signed-off-by: Hans de Goede <[email protected]>

 lib/libv4lconvert/spca501.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=e5145a8748d9c72d6eca786584e6819a9696da01

diff --git a/lib/libv4lconvert/spca501.c b/lib/libv4lconvert/spca501.c
index bf0e08a..a8e2725 100644
--- a/lib/libv4lconvert/spca501.c
+++ b/lib/libv4lconvert/spca501.c
@@ -199,8 +199,7 @@ void v4lconvert_konica_yuv420_to_yuv420(const unsigned char 
*src,
                vdest = udest + (width * height) / 4;
        }
 
-       no_blocks = width * height * 3 / 2;
-       no_blocks /= 256;
+       no_blocks = width * height / 256;
        for (i = 0; i < no_blocks; i++) {
                /* copy 256 Y pixels */
                memcpy(ydest, src, 256);
@@ -213,8 +212,8 @@ void v4lconvert_konica_yuv420_to_yuv420(const unsigned char 
*src,
                udest += 64;
 
                /* copy 64 V pixels */
-               memcpy(udest, src, 64);
+               memcpy(vdest, src, 64);
                src += 64;
-               udest += 64;
+               vdest += 64;
        }
 }

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to