summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_ass.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-04 20:48:15 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-04 20:48:15 +0000
commit1fd844ab0607130ee7689025740930abe5ddee6c (patch)
tree26bafab29559358899684377163097650ac65d83 /libmpcodecs/vf_ass.c
parent2de69adf98ec3ee508a19807fe0cefc9065cf2e2 (diff)
downloadmpv-1fd844ab0607130ee7689025740930abe5ddee6c.tar.bz2
mpv-1fd844ab0607130ee7689025740930abe5ddee6c.tar.xz
ass renderer absolutely needs readable target mpi.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20672 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_ass.c')
-rw-r--r--libmpcodecs/vf_ass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/vf_ass.c b/libmpcodecs/vf_ass.c
index c9acd155d7..fc2c06b4fc 100644
--- a/libmpcodecs/vf_ass.c
+++ b/libmpcodecs/vf_ass.c
@@ -107,7 +107,7 @@ static void get_image(struct vf_instance_s* vf, mp_image_t *mpi)
// width never changes, always try full DR
mpi->priv = vf->dmpi = vf_get_image(vf->next, mpi->imgfmt,
- mpi->type, mpi->flags,
+ mpi->type, mpi->flags | MP_IMGFLAG_READABLE,
vf->priv->outw,
vf->priv->outh);
@@ -176,7 +176,7 @@ static int prepare_image(struct vf_instance_s* vf, mp_image_t *mpi)
// hope we'll get DR buffer:
vf->dmpi = vf_get_image(vf->next, vf->priv->outfmt,
- MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
+ MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE | MP_IMGFLAG_READABLE,
vf->priv->outw, vf->priv->outh);
// copy mpi->dmpi...