1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 05:15:12 +00:00

clear black bands when using slices

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9583 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-03-14 15:06:21 +00:00
parent 722e6286b5
commit 7085181caa

View File

@ -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->h<vf->priv->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