| 2866 | } |
| 2867 | |
| 2868 | static int opt_default_new(OptionsContext *o, const char *opt, const char *arg) |
| 2869 | { |
| 2870 | int ret; |
| 2871 | AVDictionary *cbak = codec_opts; |
| 2872 | AVDictionary *fbak = format_opts; |
| 2873 | codec_opts = NULL; |
| 2874 | format_opts = NULL; |
| 2875 | |
| 2876 | ret = opt_default(NULL, opt, arg); |
| 2877 | |
| 2878 | av_dict_copy(&o->g->codec_opts , codec_opts, 0); |
| 2879 | av_dict_copy(&o->g->format_opts, format_opts, 0); |
| 2880 | av_dict_free(&codec_opts); |
| 2881 | av_dict_free(&format_opts); |
| 2882 | codec_opts = cbak; |
| 2883 | format_opts = fbak; |
| 2884 | |
| 2885 | return ret; |
| 2886 | } |
| 2887 | |
| 2888 | static int opt_preset(void *optctx, const char *opt, const char *arg) |
| 2889 | { |
no test coverage detected