From d3374e20654fc179072a4887d9aad0daa0a9207e Mon Sep 17 00:00:00 2001 From: arpi Date: Fri, 2 Aug 2002 22:57:58 +0000 Subject: [PATCH] imho swscale also likes aligned stride :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6877 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_scale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c index 0b201a770e..f80dcd28e2 100644 --- a/libmpcodecs/vf_scale.c +++ b/libmpcodecs/vf_scale.c @@ -171,7 +171,7 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){ // 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);