[Mplayer-cvslog] CVS: main/libvo vosub_vidix.c,1.3,1.4

Nick Kurshev nick at mplayer.dev.hu
Mon Jan 7 11:18:33 CET 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv23028/main/libvo

Modified Files:
	vosub_vidix.c 
Log Message:
YV12 sliced output fixed

Index: vosub_vidix.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vosub_vidix.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vosub_vidix.c	6 Jan 2002 19:21:10 -0000	1.3
+++ vosub_vidix.c	7 Jan 2002 10:18:30 -0000	1.4
@@ -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);




More information about the MPlayer-cvslog mailing list