[Mplayer-cvslog] CVS: main/libmpcodecs vf.c,1.15,1.16

Arpi of Ize arpi at mplayerhq.hu
Wed Apr 17 21:51:37 CEST 2002


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

Modified Files:
	vf.c 
Log Message:
10l

Index: vf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- vf.c	17 Apr 2002 19:05:14 -0000	1.15
+++ vf.c	17 Apr 2002 19:51:24 -0000	1.16
@@ -44,7 +44,7 @@
 void vf_mpi_clear(mp_image_t* mpi,int x0,int y0,int w,int h){
     int y;
     if(mpi->flags&MP_IMGFLAG_PLANAR){
-	if(x==0 && w==mpi->width){
+	if(x0==0 && w==mpi->width){
 	    // full width clear:
 	    memset(mpi->planes[0]+mpi->stride[0]*y0,0,mpi->stride[0]*h);
 	    memset(mpi->planes[1]+mpi->stride[1]*(y0>>1),128,mpi->stride[1]*(h>>1));
@@ -146,7 +146,7 @@
 	  } else {
 	      if(!mpi->stride[0]) mpi->stride[0]=mpi->width*mpi->bpp/8;
 	  }
-	  vf_mpi_clear(mpi,mpi->width,mpi->height);
+	  vf_mpi_clear(mpi,0,0,mpi->width,mpi->height);
 	  mpi->flags|=MP_IMGFLAG_ALLOCATED;
         }
     }




More information about the MPlayer-cvslog mailing list