diff options
author | wm4 <wm4@nowhere> | 2017-04-03 18:04:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-03 18:12:42 +0200 |
commit | 31611fc46b29e0704004e21f1e25de2f9608e109 (patch) | |
tree | aa45539886860960bc436cb481688d1b66f885bf /video | |
parent | 13160530f2ef05b24dc9331fe42b00def1e4d071 (diff) | |
download | mpv-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')
-rw-r--r-- | video/filter/vf_lavfi.c | 2 |
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) |