changeset 1028:e76fb91de4cc libavcodec

reversing my own stupidity ... (raw packed yuv422 files dont use YUY2 but UYVY)
author michaelni
date Thu, 23 Jan 2003 01:20:47 +0000
parents a0a7149be543
children 804cc05a3f61
files imgconvert.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/imgconvert.c	Wed Jan 22 09:35:03 2003 +0000
+++ b/imgconvert.c	Thu Jan 23 01:20:47 2003 +0000
@@ -242,18 +242,18 @@
    
     for(y=0;y<height;y+=2) {
         for(x=0;x<width;x+=2) {
-            cb[0] = p[0];
-            lum[0] = p[1];
-            cr[0] = p[2];
-            lum[1] = p[3];
+            lum[0] = p[0];
+            cb[0] = p[1];
+            lum[1] = p[2];
+            cr[0] = p[3];
             p += 4;
             lum += 2;
             cb++;
             cr++;
         }
         for(x=0;x<width;x+=2) {
-            lum[0] = p[1];
-            lum[1] = p[3];
+            lum[0] = p[0];
+            lum[1] = p[2];
             p += 4;
             lum += 2;
         }