vcomp/cmpto_j2k: mct opt parse fix

Fixed the commit 27bfe2fc (2020-05-29) which added option nomct, but
switched the meaning of nomct and mct by mistake.
This commit is contained in:
Martin Pulec
2024-06-17 10:56:33 +02:00
parent e494106bba
commit 9e0575239b

View File

@@ -386,7 +386,7 @@ static struct module * j2k_compress_init(struct module *parent, const char *c_cf
} else if (strncasecmp("quality=", item, strlen("quality=")) == 0) {
quality = stod(strchr(item, '=') + 1);
} else if (strcasecmp("mct", item) == 0 || strcasecmp("nomct", item) == 0) {
mct = strcasecmp("mct", item) ? 1 : 0;
mct = strcasecmp("mct", item) == 0 ? 1 : 0;
} else if (strncasecmp("mem_limit=", item, strlen("mem_limit=")) == 0) {
ASSIGN_CHECK_VAL(mem_limit, strchr(item, '=') + 1, 1);
} else if (strncasecmp("tile_limit=", item, strlen("tile_limit=")) == 0) {