changeset 4031:8b8569b255d0

YV12 sliced output fixed
author nick
date Mon, 07 Jan 2002 10:18:30 +0000
parents 922241968c63
children 076c6c29e693
files libvo/vosub_vidix.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vosub_vidix.c	Mon Jan 07 09:28:22 2002 +0000
+++ b/libvo/vosub_vidix.c	Mon Jan 07 10:18:30 2002 +0000
@@ -186,7 +186,7 @@
     apitch = vidix_play.dest.pitch.v-1;
     bespitch = (w + apitch) & ~apitch;
     dest = vidix_mem + frames[next_frame] + vidix_play.offset.v;
-    dest += (bespitch*y + x)/2;
+    dest += bespitch*y/4 + x;
     src = image[1];
     for(i=0;i<h/2;i++){
         memcpy(dest,src,w/2);
@@ -197,7 +197,7 @@
     bespitch = (w + apitch) & ~apitch;
 
     dest = vidix_mem + frames[next_frame] + vidix_play.offset.u;
-    dest += (bespitch*y + x)/2;
+    dest += bespitch*y/4 + x;
     src = image[2];
     for(i=0;i<h/2;i++){
         memcpy(dest,src,w/2);