# HG changeset patch # User michael # Date 1070473455 0 # Node ID 656932ca58abe5d204238e65b1ecc6a5c63d10eb # Parent db26f9ae122ac314c5e5293fd3dbac4d4475f5da vidix_get_image() fix diff -r db26f9ae122a -r 656932ca58ab libvo/vosub_vidix.c --- 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;