summaryrefslogtreecommitdiffstats
path: root/video/filter
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-04-03 18:04:18 +0200
committerwm4 <wm4@nowhere>2017-04-03 18:12:42 +0200
commit31611fc46b29e0704004e21f1e25de2f9608e109 (patch)
treeaa45539886860960bc436cb481688d1b66f885bf /video/filter
parent13160530f2ef05b24dc9331fe42b00def1e4d071 (diff)
downloadmpv-31611fc46b29e0704004e21f1e25de2f9608e109.tar.bz2
mpv-31611fc46b29e0704004e21f1e25de2f9608e109.tar.xz
video: support positional arguments for automatic lavfi option bridge
Now e.g. --vf=pad=1000:1000 works. All in all pretty ugly and hacky. Just look away.
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf_lavfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/filter/vf_lavfi.c b/video/filter/vf_lavfi.c
index 91930e3b02..28869075b5 100644
--- a/video/filter/vf_lavfi.c
+++ b/video/filter/vf_lavfi.c
@@ -172,7 +172,7 @@ static bool recreate_graph(struct vf_instance *vf, struct mp_image_params *fmt)
if (!filter)
goto error;
- if (mp_set_avopts(vf->log, filter, p->cfg_filter_opts) < 0)
+ if (mp_set_avopts(vf->log, filter->priv, p->cfg_filter_opts) < 0)
goto error;
if (avfilter_init_str(filter, NULL) < 0)