| 1086 | } |
| 1087 | |
| 1088 | static int opt_default_new(OptionsContext *o, const char *opt, const char *arg) |
| 1089 | { |
| 1090 | int ret; |
| 1091 | AVDictionary *cbak = codec_opts; |
| 1092 | AVDictionary *fbak = format_opts; |
| 1093 | codec_opts = NULL; |
| 1094 | format_opts = NULL; |
| 1095 | |
| 1096 | ret = opt_default(NULL, opt, arg); |
| 1097 | |
| 1098 | av_dict_copy(&o->g->codec_opts , codec_opts, 0); |
| 1099 | av_dict_copy(&o->g->format_opts, format_opts, 0); |
| 1100 | av_dict_free(&codec_opts); |
| 1101 | av_dict_free(&format_opts); |
| 1102 | codec_opts = cbak; |
| 1103 | format_opts = fbak; |
| 1104 | |
| 1105 | return ret; |
| 1106 | } |
| 1107 | |
| 1108 | static int opt_preset(void *optctx, const char *opt, const char *arg) |
| 1109 | { |
no test coverage detected