MCPcopy Create free account
hub / github.com/byhook/ffmpeg4android / opt_default_new

Function opt_default_new

ffmpeg-single-cmd/src/main/cpp/ffmpeg_opt.c:2868–2886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2866}
2867
2868static 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
2888static int opt_preset(void *optctx, const char *opt, const char *arg)
2889{

Callers 2

opt_presetFunction · 0.85
opt_channel_layoutFunction · 0.85

Calls 1

opt_defaultFunction · 0.85

Tested by

no test coverage detected