mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 20:26:05 -05:00
This commit is contained in:
1 parent
faa9f924c9
commit
8f27c0e8fb
2 files changed
+17
No files matched your search
@@ -526,6 +526,14 @@ static std::string zm_filter_file_option(const std::string &key, const std::stri
|
||||
for (const char *const *k = param_keys; *k; k++) {
|
||||
if (name == *k) deny = true;
|
||||
}
|
||||
// scaling-list also accepts built-in presets, which do not name a file
|
||||
if (deny and name == "scaling-list") {
|
||||
const size_t eq = item.find('=');
|
||||
if (eq != std::string::npos) {
|
||||
const std::string preset = item.substr(eq + 1);
|
||||
if (preset == "off" or preset == "none" or preset == "flat" or preset == "jvt" or preset == "default") deny = false;
|
||||
}
|
||||
}
|
||||
if (deny) {
|
||||
Warning("Ignoring file option '%s' in encoder option %s", name.c_str(), key.c_str());
|
||||
} else if (!item.empty()) {
|
||||
|
||||
Reference in new issue
Block a user