From a0fbc4e517ef83f02d849a30045a454bb36a8838 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 17 Jun 2024 10:56:33 +0200 Subject: [PATCH] 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. --- src/video_compress/cmpto_j2k.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_compress/cmpto_j2k.cpp b/src/video_compress/cmpto_j2k.cpp index 58fbe11dd0..71c163ddee 100644 --- a/src/video_compress/cmpto_j2k.cpp +++ b/src/video_compress/cmpto_j2k.cpp @@ -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) {