diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2011-04-16 16:50:50 -0700 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2011-04-16 16:51:54 -0700 |
commit | 0140d3f0921e5cbb6ea8706acb0307f7ff57a133 (patch) | |
tree | 048bf1eec169954454d17f9c940acc8e290b8d27 /cmdutils.c | |
parent | abf8342aa94bdf06bb324f6723a6743dd628d5c6 (diff) | |
download | ffmpeg-0140d3f0921e5cbb6ea8706acb0307f7ff57a133.tar.gz |
In libx264 wrapper, add -preset and -tune options
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c index ff1b6aaeda..7ff5986b51 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -365,8 +365,9 @@ void set_context_opts(void *ctx, void *opts_ctx, int flags, AVCodec *codec) /* We need to use a differnt system to pass options to the private context because it is not known which codec and thus context kind that will be when parsing options we thus use opt_values directly instead of opts_ctx */ - if(!str && priv_ctx && av_get_string(priv_ctx, opt_names[i], &opt, buf, sizeof(buf))){ - av_set_string3(priv_ctx, opt_names[i], opt_values[i], 1, NULL); + if(!str && priv_ctx) { + if (av_find_opt(priv_ctx, opt_names[i], NULL, flags, flags)) + av_set_string3(priv_ctx, opt_names[i], opt_values[i], 0, NULL); } } } |