avconv: fix parsing the AVOptions for -target
authorAnton Khirnov <anton@khirnov.net>
Tue, 26 Aug 2014 06:26:35 +0000 (06:26 +0000)
committerAnton Khirnov <anton@khirnov.net>
Wed, 27 Aug 2014 06:21:55 +0000 (06:21 +0000)
CC: libav-stable@libav.org
avconv_opt.c

index 33ac290..2d06912 100644 (file)
@@ -1870,6 +1870,10 @@ static int opt_target(void *optctx, const char *opt, const char *arg)
         av_log(NULL, AV_LOG_ERROR, "Unknown target: %s\n", arg);
         return AVERROR(EINVAL);
     }
+
+    av_dict_copy(&o->g->codec_opts,  codec_opts, 0);
+    av_dict_copy(&o->g->format_opts, format_opts, 0);
+
     return 0;
 }