Skip to content

Commit a0fbc4e

Browse files
committed
vcomp/cmpto_j2k: mct opt parse fix
Fixed the commit 27bfe2f (2020-05-29) which added option nomct, but switched the meaning of nomct and mct by mistake.
1 parent 498fd76 commit a0fbc4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_compress/cmpto_j2k.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ static struct module * j2k_compress_init(struct module *parent, const char *c_cf
386386
} else if (strncasecmp("quality=", item, strlen("quality=")) == 0) {
387387
quality = stod(strchr(item, '=') + 1);
388388
} else if (strcasecmp("mct", item) == 0 || strcasecmp("nomct", item) == 0) {
389-
mct = strcasecmp("mct", item) ? 1 : 0;
389+
mct = strcasecmp("mct", item) == 0 ? 1 : 0;
390390
} else if (strncasecmp("mem_limit=", item, strlen("mem_limit=")) == 0) {
391391
ASSIGN_CHECK_VAL(mem_limit, strchr(item, '=') + 1, 1);
392392
} else if (strncasecmp("tile_limit=", item, strlen("tile_limit=")) == 0) {

0 commit comments

Comments
 (0)