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

Function finish_group

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

* Finish parsing an option group. * * @param group_idx which group definition should this group belong to * @param arg argument of the group delimiting option */

Source from the content-addressed store, hash-verified

660 * @param arg argument of the group delimiting option
661 */
662static void finish_group(OptionParseContext *octx, int group_idx,
663 const char *arg)
664{
665 OptionGroupList *l = &octx->groups[group_idx];
666 OptionGroup *g;
667
668 GROW_ARRAY(l->groups, l->nb_groups);
669 g = &l->groups[l->nb_groups - 1];
670
671 *g = octx->cur_group;
672 g->arg = arg;
673 g->group_def = l->group_def;
674 g->sws_dict = sws_dict;
675 g->swr_opts = swr_opts;
676 g->codec_opts = codec_opts;
677 g->format_opts = format_opts;
678 g->resample_opts = resample_opts;
679
680 codec_opts = NULL;
681 format_opts = NULL;
682 resample_opts = NULL;
683 sws_dict = NULL;
684 swr_opts = NULL;
685 init_opts();
686
687 memset(&octx->cur_group, 0, sizeof(octx->cur_group));
688}
689
690/*
691 * Add an option instance to currently parsed group.

Callers 1

split_commandlineFunction · 0.85

Calls 1

init_optsFunction · 0.85

Tested by

no test coverage detected