mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 20:54:07 +00:00
Call config_parse through the api struct in cli.
Replaces a call to kvz_config_parse with api->config_parse.
This commit is contained in:
parent
87ca9e1856
commit
e42f1351f9
|
@ -197,7 +197,7 @@ cmdline_opts_t* cmdline_opts_parse(const kvz_api *const api, int argc, char *arg
|
||||||
opts->seek = atoi(optarg);
|
opts->seek = atoi(optarg);
|
||||||
} else if (!strcmp(name, "frames")) {
|
} else if (!strcmp(name, "frames")) {
|
||||||
opts->frames = atoi(optarg);
|
opts->frames = atoi(optarg);
|
||||||
} else if (!kvz_config_parse(opts->config, name, optarg)) {
|
} else if (!api->config_parse(opts->config, name, optarg)) {
|
||||||
fprintf(stderr, "invalid argument: %s=%s\n", name, optarg);
|
fprintf(stderr, "invalid argument: %s=%s\n", name, optarg);
|
||||||
ok = 0;
|
ok = 0;
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in a new issue