Skip to content

Commit

Permalink
vcomp/cmpto_j2k: mct opt parse fix
Browse files Browse the repository at this point in the history
Fixed the commit 27bfe2f (2020-05-29) which added option nomct, but
switched the meaning of nomct and mct by mistake.
  • Loading branch information
MartinPulec committed Jun 26, 2024
1 parent 498fd76 commit a0fbc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video_compress/cmpto_j2k.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a0fbc4e

Please sign in to comment.