changeset 1020:617e3531d3fb libavcodec

fixing yuv422 -> yuv420p (i need that for the vceq videos ...)
author michaelni
date Mon, 20 Jan 2003 20:33:08 +0000
parents ef905ded19fe
children 2d7c9f5738de
files imgconvert.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/imgconvert.c	Mon Jan 20 19:04:39 2003 +0000
+++ b/imgconvert.c	Mon Jan 20 20:33:08 2003 +0000
@@ -242,18 +242,18 @@
    
     for(y=0;y<height;y+=2) {
         for(x=0;x<width;x+=2) {
-            lum[0] = p[0];
-            cb[0] = p[1];
-            lum[1] = p[2];
-            cr[0] = p[3];
+            cb[0] = p[0];
+            lum[0] = p[1];
+            cr[0] = p[2];
+            lum[1] = p[3];
             p += 4;
             lum += 2;
             cb++;
             cr++;
         }
         for(x=0;x<width;x+=2) {
-            lum[0] = p[0];
-            lum[1] = p[2];
+            lum[0] = p[1];
+            lum[1] = p[3];
             p += 4;
             lum += 2;
         }