From 647b4aa808a96b19f95026d51cd3aa24f721d298 Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 8 Apr 2002 00:06:03 +0000 Subject: [PATCH] pp passtrough git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5528 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_scale.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c index 8e1b35e0f1..94a4c14cdc 100644 --- a/libmpcodecs/vf_scale.c +++ b/libmpcodecs/vf_scale.c @@ -84,6 +84,13 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){ vf->priv->ctx->swScale(vf->priv->ctx,mpi->planes,mpi->stride,0,mpi->h,dmpi->planes,dmpi->stride); + if(vf->priv->w==mpi->w && vf->priv->h==mpi->h){ + // just conversion, no scaling -> keep postprocessing data + // this way we can apply pp filter to non-yv12 source using scaler + dmpi->qscale=mpi->qscale; + dmpi->qstride=mpi->qstride; + } + vf_next_put_image(vf,dmpi); }