changeset 16138:6cada718a809

If scaleh == 1 our destination image must be readable
author reimar
date Thu, 28 Jul 2005 15:53:18 +0000
parents 23b7f5476b61
children aaa677f0188c
files libmpcodecs/vf_down3dright.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_down3dright.c	Thu Jul 28 15:47:30 2005 +0000
+++ b/libmpcodecs/vf_down3dright.c	Thu Jul 28 15:53:18 2005 +0000
@@ -85,7 +85,8 @@
 
 	// 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);