From 7085181caa28ffe5a7514b18b1971fe16b80f2d2 Mon Sep 17 00:00:00 2001 From: arpi Date: Fri, 14 Mar 2003 15:06:21 +0000 Subject: [PATCH] clear black bands when using slices git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9583 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_expand.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libmpcodecs/vf_expand.c b/libmpcodecs/vf_expand.c index d4e8d61ed7..550fdb20b6 100644 --- a/libmpcodecs/vf_expand.c +++ b/libmpcodecs/vf_expand.c @@ -256,6 +256,15 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){ if(mpi->flags&MP_IMGFLAG_DIRECT || mpi->flags&MP_IMGFLAG_DRAW_CALLBACK){ vf->priv->dmpi=mpi->priv; mpi->priv=NULL; + if(mpi->flags&MP_IMGFLAG_DRAW_CALLBACK){ + if(vf->priv->exp_y>0) + vf_next_draw_slice(vf, vf->priv->dmpi->planes, vf->priv->dmpi->stride, + vf->priv->dmpi->w,vf->priv->exp_y,0,0); + if(vf->priv->exp_y+mpi->hpriv->dmpi->h) + vf_next_draw_slice(vf, vf->priv->dmpi->planes, vf->priv->dmpi->stride, + vf->priv->dmpi->w,vf->priv->dmpi->h-(vf->priv->exp_y+mpi->h), + 0,vf->priv->exp_y+mpi->h); + } #ifdef OSD_SUPPORT if(vf->priv->osd) draw_osd(vf,mpi->w,mpi->h); #endif