changeset 11553:656932ca58ab

vidix_get_image() fix
author michael
date Wed, 03 Dec 2003 17:44:15 +0000
parents db26f9ae122a
children 6a2faa31a283
files libvo/vosub_vidix.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vosub_vidix.c	Wed Dec 03 02:59:22 2003 +0000
+++ b/libvo/vosub_vidix.c	Wed Dec 03 17:44:15 2003 +0000
@@ -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;