summaryrefslogtreecommitdiffstats
path: root/video/filter
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-22 14:41:33 +0200
committerwm4 <wm4@nowhere>2013-07-22 14:41:33 +0200
commit0b160e125723baa42aa3e880945817e518946bd2 (patch)
tree2d4cc87ba08c13b216e3dd8a994849f55827c869 /video/filter
parentdb9102765afe9f8904ff299632dc09a5035a3eb8 (diff)
downloadmpv-0b160e125723baa42aa3e880945817e518946bd2.tar.bz2
mpv-0b160e125723baa42aa3e880945817e518946bd2.tar.xz
vf_scale: actually respect param and param2 suboptions
This was forgotten in commit b81f5e2.
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf_scale.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/filter/vf_scale.c b/video/filter/vf_scale.c
index 7237a2c224..738487f7d8 100644
--- a/video/filter/vf_scale.c
+++ b/video/filter/vf_scale.c
@@ -425,6 +425,9 @@ static int vf_open(vf_instance_t *vf, char *args)
vf->control = control;
vf->uninit = uninit;
vf->priv->sws = mp_sws_alloc(vf);
+ vf->priv->sws->params[0] = vf->priv->param[0];
+ vf->priv->sws->params[1] = vf->priv->param[1];
+
mp_msg(MSGT_VFILTER, MSGL_V, "SwScale params: %d x %d (-1=no scaling)\n",
vf->priv->cfg_w, vf->priv->cfg_h);