mirror of
https://github.com/mpv-player/mpv
synced 2025-02-04 06:01:56 +00:00
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:
parent
64c604d9d2
commit
5350224534
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user