diff libmpcodecs/vf_scale.c @ 6876:49485d9f0d47

imho swscale also likes aligned stride :)
author arpi
date Fri, 02 Aug 2002 22:57:58 +0000
parents 713182435a76
children c9ee9c799f4a
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c	Fri Aug 02 22:55:54 2002 +0000
+++ b/libmpcodecs/vf_scale.c	Fri Aug 02 22:57:58 2002 +0000
@@ -171,7 +171,7 @@
 
     // hope we'll get DR buffer:
     dmpi=vf_get_image(vf->next,vf->priv->fmt,
-	MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
+	MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE | MP_IMGFLAG_PREFER_ALIGNED_STRIDE,
 	vf->priv->w, vf->priv->h);
     vf->priv->ctx->swScale(vf->priv->ctx,mpi->planes,mpi->stride,0,mpi->h,dmpi->planes,dmpi->stride);