diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-09-11 08:03:11 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-09-11 08:03:11 +0000 |
commit | 6def3baf76c7a8050e20b06733b1e0a7bef226ee (patch) | |
tree | c7a24a5a28005566558183c34d957858137ec734 /converter/other/jpeg2000 | |
parent | d2e87ddec56c883cea0b738e6bf20b842540bf90 (diff) | |
download | netpbm-mirror-6def3baf76c7a8050e20b06733b1e0a7bef226ee.tar.gz netpbm-mirror-6def3baf76c7a8050e20b06733b1e0a7bef226ee.tar.xz netpbm-mirror-6def3baf76c7a8050e20b06733b1e0a7bef226ee.zip |
Fix -progression
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3958 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/jpeg2000')
-rw-r--r-- | converter/other/jpeg2000/pamtojpeg2k.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/converter/other/jpeg2000/pamtojpeg2k.c b/converter/other/jpeg2000/pamtojpeg2k.c index 4d73316a..e2bb125b 100644 --- a/converter/other/jpeg2000/pamtojpeg2k.c +++ b/converter/other/jpeg2000/pamtojpeg2k.c @@ -196,15 +196,15 @@ parseCommandLine(int argc, char ** argv, if (!ilyrratesSpec) cmdlineP->ilyrrates = (char*) ""; if (progressionSpec) { - if (strcmp(progressionOpt, "lrcp") == 0) + if (streq(progressionOpt, "lrcp")) cmdlineP->progression = PROG_LRCP; - if (strcmp(progressionOpt, "rlcp") == 0) + else if (streq(progressionOpt, "rlcp")) cmdlineP->progression = PROG_RLCP; - if (strcmp(progressionOpt, "rpcl") == 0) + else if (streq(progressionOpt, "rpcl")) cmdlineP->progression = PROG_RPCL; - if (strcmp(progressionOpt, "pcrl") == 0) + else if (streq(progressionOpt, "pcrl")) cmdlineP->progression = PROG_PCRL; - if (strcmp(progressionOpt, "cprl") == 0) + else if (streq(progressionOpt, "cprl")) cmdlineP->progression = PROG_CPRL; else pm_error("Invalid value for -progression: '%s'. " |