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

Function init_parse_context

ffmpeg-single-cmd/src/main/cpp/cmdutils.c:705–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705static void init_parse_context(OptionParseContext *octx,
706 const OptionGroupDef *groups, int nb_groups)
707{
708 static const OptionGroupDef global_group = { "global" };
709 int i;
710
711 memset(octx, 0, sizeof(*octx));
712
713 octx->nb_groups = nb_groups;
714 octx->groups = av_mallocz_array(octx->nb_groups, sizeof(*octx->groups));
715 if (!octx->groups)
716 exit_program(1);
717
718 for (i = 0; i < octx->nb_groups; i++)
719 octx->groups[i].group_def = &groups[i];
720
721 octx->global_opts.group_def = &global_group;
722 octx->global_opts.arg = "";
723
724 init_opts();
725}
726
727void uninit_parse_context(OptionParseContext *octx)
728{

Callers 1

split_commandlineFunction · 0.85

Calls 3

exit_programFunction · 0.85
init_optsFunction · 0.85
av_mallocz_arrayFunction · 0.50

Tested by

no test coverage detected