Module: libav
Branch: release/9
Commit: e1f0c41e1aa37a9c166c43abf1b526c796ed7649

Author:    Anton Khirnov <[email protected]>
Committer: Anton Khirnov <[email protected]>
Date:      Tue Aug 26 06:26:35 2014 +0000

avconv: fix parsing the AVOptions for -target

CC: [email protected]
(cherry picked from commit f5245a9c6206878b892adf3ccbccc9311c202af5)
Signed-off-by: Anton Khirnov <[email protected]>
(cherry picked from commit f7395926f204051af9ad459a6d876b96ee6179ee)
Signed-off-by: Anton Khirnov <[email protected]>

---

 avconv_opt.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/avconv_opt.c b/avconv_opt.c
index 8f7fb3a..3c82657 100644
--- a/avconv_opt.c
+++ b/avconv_opt.c
@@ -1633,6 +1633,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;
 }
 

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to