summaryrefslogtreecommitdiff
path: root/applications/common
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2011-07-03 17:56:49 +0000
committerAntonin Descampe <antonin@gmail.com>2011-07-03 17:56:49 +0000
commitfa6aea80f5b8fa6a21557f4e6696a1d320a538bf (patch)
treedae5da0c2b8a7a0fa67a0c1725e4bcc532783e79 /applications/common
parentb09051fd79da1101185a73198aac2d65cf2b2450 (diff)
fixed handling of "jp2->meth" value (Restricted ICC profile handling currently not implemented)
Diffstat (limited to 'applications/common')
-rw-r--r--applications/common/color.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/applications/common/color.c b/applications/common/color.c
index ac0921a0..bda1f685 100644
--- a/applications/common/color.c
+++ b/applications/common/color.c
@@ -289,6 +289,9 @@ void color_apply_icc_profile(opj_image_t *image)
in_prof =
cmsOpenProfileFromMem(image->icc_profile_buf, image->icc_profile_len);
+
+ if(in_prof == NULL) return;
+
in_space = cmsGetPCS(in_prof);
out_space = cmsGetColorSpace(in_prof);
intent = cmsGetHeaderRenderingIntent(in_prof);