From 31611fc46b29e0704004e21f1e25de2f9608e109 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 3 Apr 2017 18:04:18 +0200 Subject: 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. --- video/filter/vf_lavfi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/filter') 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) -- cgit v1.2.3