Browse code

avconv: fix parsing the AVOptions for -target

CC: libav-stable@libav.org
(cherry picked from commit f5245a9c6206878b892adf3ccbccc9311c202af5)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit f7395926f204051af9ad459a6d876b96ee6179ee)
Signed-off-by: Anton Khirnov <anton@khirnov.net>

Anton Khirnov authored on 2014/08/26 15:26:35
Showing 1 changed files
... ...
@@ -1633,6 +1633,10 @@ static int opt_target(void *optctx, const char *opt, const char *arg)
1633 1633
         av_log(NULL, AV_LOG_ERROR, "Unknown target: %s\n", arg);
1634 1634
         return AVERROR(EINVAL);
1635 1635
     }
1636
+
1637
+    av_dict_copy(&o->g->codec_opts,  codec_opts, 0);
1638
+    av_dict_copy(&o->g->format_opts, format_opts, 0);
1639
+
1636 1640
     return 0;
1637 1641
 }
1638 1642