diff options
| author | Matthieu Darbois <mayeut@users.noreply.github.com> | 2014-12-22 18:39:14 +0000 |
|---|---|---|
| committer | Matthieu Darbois <mayeut@users.noreply.github.com> | 2014-12-22 18:39:14 +0000 |
| commit | 6922124c4c29ce0f54323c50b17684eddf0e736c (patch) | |
| tree | 1a0d1575ffd3dbc09c4f9d44b98bf416d3927b9c /src/bin/jp2 | |
| parent | 59b844347c19c143e965ac767dc928a98c97fb17 (diff) | |
[trunk] fixed colorspace mapping for raw grayscale images (fixes issue 456)
Diffstat (limited to 'src/bin/jp2')
| -rw-r--r-- | src/bin/jp2/convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index 7f4593b0..3de635be 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -2381,7 +2381,7 @@ static opj_image_t* rawtoimage_common(const char *filename, opj_cparameters_t *p numcomps = raw_cp->rawComp; /* FIXME ADE at this point, tcp_mct has not been properly set in calling function */ - if (numcomps == 0) { + if (numcomps == 1) { color_space = OPJ_CLRSPC_GRAY; } else if ((numcomps >= 3) && (parameters->tcp_mct == 0)) { color_space = OPJ_CLRSPC_SYCC; |
