[Mplayer-cvslog] CVS: main/libvo vosub_vidix.c,1.61,1.62

Michael Niedermayer CVS michael at mplayerhq.hu
Wed Dec 3 18:44:44 CET 2003


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

Modified Files:
	vosub_vidix.c 
Log Message:
vidix_get_image() fix


Index: vosub_vidix.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vosub_vidix.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- vosub_vidix.c	22 Oct 2003 20:39:58 -0000	1.61
+++ vosub_vidix.c	3 Dec 2003 17:44:15 -0000	1.62
@@ -578,10 +578,10 @@
 	mpi->width=mpi->stride[0]=dstrides.y;
 	if(mpi->flags&MP_IMGFLAG_PLANAR)
 	{
-	    mpi->planes[2]=vidix_mem+vidix_play.offsets[next_frame]+vidix_play.offset.v;
-	    mpi->stride[2]=dstrides.v;
-	    mpi->planes[1]=vidix_mem+vidix_play.offsets[next_frame]+vidix_play.offset.u;
-	    mpi->stride[1]=dstrides.u;
+	    mpi->planes[1]=vidix_mem+vidix_play.offsets[next_frame]+vidix_play.offset.v;
+	    mpi->stride[1]=dstrides.v >> mpi->chroma_x_shift;
+	    mpi->planes[2]=vidix_mem+vidix_play.offsets[next_frame]+vidix_play.offset.u;
+	    mpi->stride[2]=dstrides.u >> mpi->chroma_x_shift;
 	} else
 	    mpi->width/=mpi->bpp/8;
 	mpi->flags|=MP_IMGFLAG_DIRECT;



More information about the MPlayer-cvslog mailing list