mirror of
https://github.com/Genymobile/scrcpy
synced 2024-12-27 01:22:09 +00:00
Do not arbitrary limit --max-fps to 1000
Limit to the variable type size, for consistency.
This commit is contained in:
parent
b62a501819
commit
e2cc579316
@ -1315,7 +1315,7 @@ parse_max_size(const char *s, uint16_t *max_size) {
|
|||||||
static bool
|
static bool
|
||||||
parse_max_fps(const char *s, uint16_t *max_fps) {
|
parse_max_fps(const char *s, uint16_t *max_fps) {
|
||||||
long value;
|
long value;
|
||||||
bool ok = parse_integer_arg(s, &value, false, 0, 1000, "max fps");
|
bool ok = parse_integer_arg(s, &value, false, 0, 0xFFFF, "max fps");
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user