changeset 5761:1ba1b0365ab7

100l - fixed yuy2 -dr, reported by Nexus
author arpi
date Sun, 21 Apr 2002 12:39:45 +0000
parents 41ad1efb8ffb
children 26b3c8e7f6c8
files libvo/vo_xv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xv.c	Sun Apr 21 11:37:44 2002 +0000
+++ b/libvo/vo_xv.c	Sun Apr 21 12:39:45 2002 +0000
@@ -738,7 +738,7 @@
 	   mpi->stride[1]=mpi->stride[2]=image_width/2;
        } else {
            mpi->planes[0]=xvimage[current_buf]->data;
-	   mpi->stride[0]=image_width;
+	   mpi->stride[0]=image_width*(mpi->bpp>>3);
        }
        mpi->flags|=MP_IMGFLAG_DIRECT;
 //	printf("mga: get_image() SUCCESS -> Direct Rendering ENABLED\n");