Limit scale to 16x mainly to put an upper bound on the amount of ram we might use.

pull/4058/head
Isaac Connor 2024-05-30 12:10:10 -04:00
parent 0fa220513d
commit 1fdfcf3cdd
1 changed files with 4 additions and 0 deletions

View File

@ -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") ) {