mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-28 23:19:11 +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;
|
arguments->scaling_factor = 0;
|
||||||
|
|
||||||
while ((c = getopt_long(
|
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) {
|
)) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'i':
|
case 'i':
|
||||||
@ -337,7 +337,7 @@ void parse_arguments(int argc, char **argv, struct arguments *arguments) {
|
|||||||
fprintf(
|
fprintf(
|
||||||
stderr,
|
stderr,
|
||||||
"Error: For libplacebo, shader name/path (-s), width (-w), "
|
"Error: For libplacebo, shader name/path (-s), width (-w), "
|
||||||
"and height (-e) are required.\n"
|
"and height (-h) are required.\n"
|
||||||
);
|
);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user