diff libmpcodecs/vf_down3dright.c @ 16138:6cada718a809

If scaleh == 1 our destination image must be readable
author reimar
date Thu, 28 Jul 2005 15:53:18 +0000
parents 44fbb21a4eba
children 6ff3379a0862
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);