Mercurial > mplayer.hg
changeset 5663:32869a44fac1
10l
author | arpi |
---|---|
date | Wed, 17 Apr 2002 19:51:24 +0000 |
parents | 663ca5050f7e |
children | ee6c9530729f |
files | libmpcodecs/vf.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; } }