mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Limit scale to 16x mainly to put an upper bound on the amount of ram we might use.
This commit is contained in:
@@ -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") ) {
|
||||
|
||||
Reference in New Issue
Block a user