Showing the changes to fftools/cmdutils.c (1 of 1 file). Show all
Unified · Split
| @@ -793,7 +793,7 @@ int split_commandline(OptionParseContext *octx, int argc, char *argv[], · 792 unmodified lines | ||
| 793 | 793 | while (optindex < argc) { |
| 794 | 794 | const char *opt = argv[optindex++], *arg; |
| 795 | 795 | const OptionDef *po; |
| 796 | − int ret; | |
| 796 | + int ret, group_idx; | |
| 797 | 797 | |
| 798 | 798 | av_log(NULL, AV_LOG_DEBUG, "Reading option '%s' ...", opt); |
| 799 | 799 | |
| @@ -822,14 +822,15 @@ do { \ · 22 unmodified lines | ||
| 822 | 822 | } while (0) |
| 823 | 823 | |
| 824 | 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 | 827 | GET_ARG(arg); |
| 827 | − ret = finish_group(octx, ret, arg); | |
| 828 | + ret = finish_group(octx, group_idx, arg); | |
| 828 | 829 | if (ret < 0) |
| 829 | 830 | return ret; |
| 830 | 831 | |
| 831 | 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 | 834 | continue; |
| 834 | 835 | } |
| 835 | 836 | |