diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2011-05-10 16:40:21 -0700 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2011-05-10 16:42:52 -0700 |
commit | 580fa76c5c8b4372247221a4602527a060e2d5b4 (patch) | |
tree | 5df96f5728cbc9fb2789374c40590bac887d34fd /cmdutils.c | |
parent | 3732c483040f0309505f1aa896fdefef5083ba34 (diff) | |
download | ffmpeg-580fa76c5c8b4372247221a4602527a060e2d5b4.tar.gz |
Allocate per codec options, now that options are freed between inputs and outputs.
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c index 38e152a4ad..11391af361 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -435,7 +435,7 @@ void set_context_opts(void *ctx, void *opts_ctx, int flags, AVCodec *codec) const char *str; if (priv_ctx) { if (av_find_opt(priv_ctx, opt_names[i], NULL, flags, flags)) { - if (av_set_string3(priv_ctx, opt_names[i], opt_values[i], 0, NULL) < 0) { + if (av_set_string3(priv_ctx, opt_names[i], opt_values[i], 1, NULL) < 0) { fprintf(stderr, "Invalid value '%s' for option '%s'\n", opt_names[i], opt_values[i]); exit(1); |