hvif2png: allow larger sizes.
What if I need some high resolution rendering of icons? Also fix the error message for out of range/unparsable sizes that would show "-s" as the problematic size.
This commit is contained in:
parent
22beb3fd42
commit
f029289cbd
@ -263,8 +263,8 @@ h2p_parse_args(h2p_parameters* result, int argc, char* argv[])
|
||||
|
||||
result->size = atoi(argv[i + 1]);
|
||||
|
||||
if (result->size <= 0 || result->size > 1024) {
|
||||
fprintf(stderr,"bad size specified; '%s'\n", argv[i]);
|
||||
if (result->size <= 0 || result->size > 8192) {
|
||||
fprintf(stderr,"bad size specified; '%s'\n", argv[i + 1]);
|
||||
h2p_fprintsyntax(stderr);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user