If scaleh == 1 our destination image must be readable

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16139 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-07-28 15:53:18 +00:00
parent 64c604d9d2
commit 5350224534
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi)
// hope we'll get DR buffer:
dmpi=vf_get_image(vf->next, IMGFMT_YV12,
MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE |
(vf->priv->scaleh == 1) ? MP_IMGFLAG_READABLE : 0,
mpi->w * vf->priv->scalew,
mpi->h / vf->priv->scaleh - vf->priv->skipline);