diff options
author | wm4 <wm4@nowhere> | 2018-04-27 15:55:53 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-04-29 02:21:32 +0300 |
commit | 2a28712b44b0b462a33ee6e91c98e8e19549fede (patch) | |
tree | 7ad0c7b8ac366096e77c9fd60d60ce2d6b06a8a2 /common/av_common.h | |
parent | fff5fda74b4fd151b2fa488f34a55a3c7dda9990 (diff) | |
download | mpv-2a28712b44b0b462a33ee6e91c98e8e19549fede.tar.bz2 mpv-2a28712b44b0b462a33ee6e91c98e8e19549fede.tar.xz |
f_lavfi: support setting common filter options like "threads"
AVFilterContext instances support some additional AVOptions over the
actual filter. This includes useful options like "threads". We didn't
support setting those for the "direct" wrapper (--vf=yadif:threads=1
failed). Change this. It requires setting options on the AVFilterContext
directly, except the code for positional parameters still needs to
access the actual filter's AVOptions.
Diffstat (limited to 'common/av_common.h')
-rw-r--r-- | common/av_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/av_common.h b/common/av_common.h index 6cbadb4a96..4037afa0ad 100644 --- a/common/av_common.h +++ b/common/av_common.h @@ -47,5 +47,6 @@ const char *mp_codec_from_av_codec_id(int codec_id); void mp_set_avdict(struct AVDictionary **dict, char **kv); void mp_avdict_print_unset(struct mp_log *log, int msgl, struct AVDictionary *d); int mp_set_avopts(struct mp_log *log, void *avobj, char **kv); +int mp_set_avopts_pos(struct mp_log *log, void *avobj, void *posargs, char **kv); #endif |