Limit scale to 16x mainly to put an upper bound on the amount of ram we might use.
parent
0fa220513d
commit
1fdfcf3cdd
|
@ -166,6 +166,10 @@ int main(int argc, const char *argv[], char **envp) {
|
|||
frames_to_send = strtoll(value, nullptr, 10);
|
||||
} else if ( !strcmp(name, "scale") ) {
|
||||
scale = atoi(value);
|
||||
if (scale > 1600) {
|
||||
Warning("Limiting scale to 16x");
|
||||
scale = 1600;
|
||||
}
|
||||
} else if ( !strcmp(name, "rate") ) {
|
||||
rate = atoi(value);
|
||||
} else if ( !strcmp(name, "maxfps") ) {
|
||||
|
|
Loading…
Reference in New Issue