diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-07-28 15:53:18 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-07-28 15:53:18 +0000 |
commit | 5350224534b489e65b6167fd3773fbf39d35b5e1 (patch) | |
tree | 0eea8f6bb627bb33ae9062553a4f5615c3f19f63 /libmpcodecs | |
parent | 64c604d9d2f1384cf17e12ae3d1521edba44eae8 (diff) | |
download | mpv-5350224534b489e65b6167fd3773fbf39d35b5e1.tar.bz2 mpv-5350224534b489e65b6167fd3773fbf39d35b5e1.tar.xz |
If scaleh == 1 our destination image must be readable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16139 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vf_down3dright.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpcodecs/vf_down3dright.c b/libmpcodecs/vf_down3dright.c index f1441d9b57..a8f3939208 100644 --- a/libmpcodecs/vf_down3dright.c +++ b/libmpcodecs/vf_down3dright.c @@ -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); |