MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / opt_default_new

Function opt_default_new

fftools/ffmpeg_opt.c:1088–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088static 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
1108static int opt_preset(void *optctx, const char *opt, const char *arg)
1109{

Callers 1

opt_presetFunction · 0.85

Calls 3

opt_defaultFunction · 0.85
av_dict_copyFunction · 0.85
av_dict_freeFunction · 0.85

Tested by

no test coverage detected