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

Function match_group_separator

fftools/cmdutils.c:671–683  ·  view source on GitHub ↗

* Check whether given option is a group separator. * * @return index of the group definition that matched or -1 if none */

Source from the content-addressed store, hash-verified

669 * @return index of the group definition that matched or -1 if none
670 */
671static int match_group_separator(const OptionGroupDef *groups, int nb_groups,
672 const char *opt)
673{
674 int i;
675
676 for (i = 0; i < nb_groups; i++) {
677 const OptionGroupDef *p = &groups[i];
678 if (p->sep && !strcmp(p->sep, opt))
679 return i;
680 }
681
682 return -1;
683}
684
685/*
686 * Finish parsing an option group.

Callers 1

split_commandlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected