History

fftools/cmdutils: fix printing group name in split_commandline()

Anton Khirnov committed 2 years ago

Commit ddaedde1 parent 9e8be931 file · +5 −4Browse files

Showing the changes to fftools/cmdutils.c (1 of 1 file). Show all

Unified · Split

fftools/cmdutils.c+5−4
@@ -793,7 +793,7 @@ int split_commandline(OptionParseContext *octx, int argc, char *argv[], · 792 unmodified lines
793 while (optindex < argc) {793 while (optindex < argc) {
794 const char *opt = argv[optindex++], *arg;794 const char *opt = argv[optindex++], *arg;
795 const OptionDef *po;795 const OptionDef *po;
796 int ret;796 int ret, group_idx;
797 797
798 av_log(NULL, AV_LOG_DEBUG, "Reading option '%s' ...", opt);798 av_log(NULL, AV_LOG_DEBUG, "Reading option '%s' ...", opt);
799 799
@@ -822,14 +822,15 @@ do { \ · 22 unmodified lines
822} while (0)822} while (0)
823 823
824 /* named group separators, e.g. -i */824 /* named group separators, e.g. -i */
825 if ((ret = match_group_separator(groups, nb_groups, opt)) >= 0) {825 group_idx = match_group_separator(groups, nb_groups, opt);
826 if (group_idx >= 0) {
826 GET_ARG(arg);827 GET_ARG(arg);
827 ret = finish_group(octx, ret, arg);828 ret = finish_group(octx, group_idx, arg);
828 if (ret < 0)829 if (ret < 0)
829 return ret;830 return ret;
830 831
831 av_log(NULL, AV_LOG_DEBUG, " matched as %s with argument '%s'.\n",832 av_log(NULL, AV_LOG_DEBUG, " matched as %s with argument '%s'.\n",
832 groups[ret].name, arg);833 groups[group_idx].name, arg);
833 continue;834 continue;
834 }835 }
835 836

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t