# HG changeset patch # User arpi # Date 1019073084 0 # Node ID 32869a44fac10f56bf318cbfb08e3ba55201d96c # Parent 663ca5050f7e172196da92e3c65e59a29fe8972f 10l diff -r 663ca5050f7e -r 32869a44fac1 libmpcodecs/vf.c --- a/libmpcodecs/vf.c Wed Apr 17 19:11:52 2002 +0000 +++ b/libmpcodecs/vf.c Wed Apr 17 19:51:24 2002 +0000 @@ -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; } }