diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-10-16 15:01:03 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-10-25 15:50:27 +0200 |
commit | e815e64406e574a75a33e057f954422d56ade314 (patch) | |
tree | 60e0698de2155ab063173ac3885266434e13c2c8 /source/fitz/load-tiff.c | |
parent | c7535ca8ef92af5adcb58d1b33e15933c27951c5 (diff) | |
download | mupdf-e815e64406e574a75a33e057f954422d56ade314.tar.xz |
Guard loading embedded ICC profiles in images with FZ_ENABLE_ICC.
Stops all the extra errors and warnings about missing ICC support.
Diffstat (limited to 'source/fitz/load-tiff.c')
-rw-r--r-- | source/fitz/load-tiff.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c index 6e903e66..0e58859d 100644 --- a/source/fitz/load-tiff.c +++ b/source/fitz/load-tiff.c @@ -1134,6 +1134,7 @@ tiff_decode_ifd(fz_context *ctx, struct tiff *tiff) tiff->stride = (tiff->imagewidth * tiff->samplesperpixel * tiff->bitspersample + 7) / 8; tiff->tilestride = (tiff->tilewidth * tiff->samplesperpixel * tiff->bitspersample + 7) / 8; +#if FZ_ENALBE_ICC if (tiff->profile) { fz_buffer *buff = NULL; @@ -1152,6 +1153,7 @@ tiff_decode_ifd(fz_context *ctx, struct tiff *tiff) tiff->colorspace = NULL; } } +#endif if (tiff->colorspace == NULL) { |