diff options
author | wm4 <wm4@nowhere> | 2014-06-10 22:41:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-11 00:39:13 +0200 |
commit | fd5207f56d13f70a7750ac457dc5efdb514d9845 (patch) | |
tree | d2ff38fb1e1837467d25a5e4326c1ab695a8437a /video/filter/vf_scale.c | |
parent | 2fc3be582c8c5aa510c92c7602ce72d5a1daa0ed (diff) | |
download | mpv-fd5207f56d13f70a7750ac457dc5efdb514d9845.tar.bz2 mpv-fd5207f56d13f70a7750ac457dc5efdb514d9845.tar.xz |
options: remove global variables for swscale options; rename them
Additionally to removing the global variables, this makes the options
more uniform. --ssf-... becomes --sws-..., and --sws becomes --sws-
scaler. For --sws-scaler, use choices instead of magic integer values.
Diffstat (limited to 'video/filter/vf_scale.c')
-rw-r--r-- | video/filter/vf_scale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/filter/vf_scale.c b/video/filter/vf_scale.c index bcb4cae2f2..730994c12c 100644 --- a/video/filter/vf_scale.c +++ b/video/filter/vf_scale.c @@ -317,7 +317,7 @@ static int reconfig(struct vf_instance *vf, struct mp_image_params *in, } mp_image_params_guess_csp(out); - mp_sws_set_from_cmdline(vf->priv->sws); + mp_sws_set_from_cmdline(vf->priv->sws, vf->chain->opts->vo.sws_opts); vf->priv->sws->flags |= vf->priv->v_chr_drop << SWS_SRC_V_CHR_DROP_SHIFT; vf->priv->sws->flags |= vf->priv->accurate_rnd * SWS_ACCURATE_RND; vf->priv->sws->src = *in; |