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-png.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-png.c')
-rw-r--r-- | source/fitz/load-png.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/load-png.c b/source/fitz/load-png.c index fbda9035..7d2201ee 100644 --- a/source/fitz/load-png.c +++ b/source/fitz/load-png.c @@ -344,6 +344,7 @@ png_read_trns(fz_context *ctx, struct info *info, const unsigned char *p, unsign static void png_read_icc(fz_context *ctx, struct info *info, const unsigned char *p, unsigned int size) { +#if FZ_ENABLE_ICC fz_stream *mstm = NULL, *zstm = NULL; fz_colorspace *cs = NULL; size_t m = fz_mini(80, size); @@ -373,6 +374,7 @@ png_read_icc(fz_context *ctx, struct info *info, const unsigned char *p, unsigne } fz_catch(ctx) fz_warn(ctx, "cannot read embedded ICC profile"); +#endif } static void |