[Mplayer-cvslog] CVS: main/libvo vo_xv.c,1.64,1.65

Arpi of Ize arpi at mplayer.dev.hu
Sun Mar 24 19:19:16 CET 2002


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

Modified Files:
	vo_xv.c 
Log Message:
fixed U/V swapping for direct rendering, and 3rd plane offset calculation when height!=0

Index: vo_xv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xv.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- vo_xv.c	19 Mar 2002 18:57:24 -0000	1.64
+++ vo_xv.c	24 Mar 2002 18:19:14 -0000	1.65
@@ -715,8 +715,9 @@
     if(mpi->width==image_width){
        if(mpi->flags&MP_IMGFLAG_PLANAR){
 	   mpi->planes[0]=xvimage[current_buf]->data;
-	   mpi->planes[1]=xvimage[current_buf]->data+image_width*image_height;
-	   mpi->planes[2]=xvimage[current_buf]->data+image_width*image_height*5/4;
+	   mpi->planes[2]=xvimage[current_buf]->data+image_width*image_height;
+//	   mpi->planes[1]=xvimage[current_buf]->data+image_width*image_height*5/4;
+	   mpi->planes[1]=mpi->planes[2]+(image_width>>1)*(image_height>>1);
 	   mpi->stride[0]=image_width;
 	   mpi->stride[1]=mpi->stride[2]=image_width/2;
        } else {




More information about the MPlayer-cvslog mailing list