mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-27 14:39:09 +00:00
fix(video2x): fixed -g option in src/video2x.c and help message for libplacebo (#1197)
* fixed -g option in src/video2x.c and help message for libplacebo * style: sorted getopt options --------- Signed-off-by: Neo_Chen <chenkolei@gmail.com> Co-authored-by: K4YT3X <i@k4yt3x.com>
This commit is contained in:
parent
747d85cf9b
commit
ebef5f54cb
@ -216,7 +216,7 @@ void parse_arguments(int argc, char **argv, struct arguments *arguments) {
|
||||
arguments->scaling_factor = 0;
|
||||
|
||||
while ((c = getopt_long(
|
||||
argc, argv, "i:o:f:a:c:x:p:b:q:s:w:h:r:m:v", long_options, &option_index
|
||||
argc, argv, "i:o:f:a:c:x:p:b:q:s:w:h:g:m:r:v", long_options, &option_index
|
||||
)) != -1) {
|
||||
switch (c) {
|
||||
case 'i':
|
||||
@ -337,7 +337,7 @@ void parse_arguments(int argc, char **argv, struct arguments *arguments) {
|
||||
fprintf(
|
||||
stderr,
|
||||
"Error: For libplacebo, shader name/path (-s), width (-w), "
|
||||
"and height (-e) are required.\n"
|
||||
"and height (-h) are required.\n"
|
||||
);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user