aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2011-05-10 16:40:21 -0700
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2011-05-10 16:42:52 -0700
commit580fa76c5c8b4372247221a4602527a060e2d5b4 (patch)
tree5df96f5728cbc9fb2789374c40590bac887d34fd /cmdutils.c
parent3732c483040f0309505f1aa896fdefef5083ba34 (diff)
downloadffmpeg-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.c2
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);