diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-04-26 02:02:30 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-04-26 02:02:30 +0000 |
commit | 6ecfd67b3a55e4f2b25d7f203dfb84ea2eaf6e2a (patch) | |
tree | 2372412a33ab35302249ca53a21dc1bb070d6799 /converter/other | |
parent | d31cd2b86862ceae2a62551d627b7cc6715a80a4 (diff) | |
download | netpbm-mirror-6ecfd67b3a55e4f2b25d7f203dfb84ea2eaf6e2a.tar.gz netpbm-mirror-6ecfd67b3a55e4f2b25d7f203dfb84ea2eaf6e2a.tar.xz netpbm-mirror-6ecfd67b3a55e4f2b25d7f203dfb84ea2eaf6e2a.zip |
Fix bug in recognizing GRAYSCALE* tuple type - but since it affects only images with non-visual tuple types, where function is undefined anyway, no functional effect
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3213 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/jpeg2000/pamtojpeg2k.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/jpeg2000/pamtojpeg2k.c b/converter/other/jpeg2000/pamtojpeg2k.c index 3d8a97af..630f2310 100644 --- a/converter/other/jpeg2000/pamtojpeg2k.c +++ b/converter/other/jpeg2000/pamtojpeg2k.c @@ -355,7 +355,7 @@ convertToJasperImage(struct pam * const inpamP, JAS_IMAGE_CT_COLOR(JAS_IMAGE_CT_RGB_B)); } } else { - if (strncmp(inpamP->tuple_type, "GRAYSCALE", 9 == 0) || + if (strncmp(inpamP->tuple_type, "GRAYSCALE", 9) == 0 || strncmp(inpamP->tuple_type, "BLACKANDWHITE", 13) == 0) { jas_image_setclrspc(jasperP, JAS_CLRSPC_GENGRAY); jas_image_setcmpttype(jasperP, 0, |