From a6772e77b84a59b59ffdf501f9c5991fbcec4a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20B=C3=BCnzli?= Date: Fri, 16 Aug 2013 23:21:04 +0200 Subject: support deprecated JPEG-in-TIFF compression This fixes at least 2347 - old-style tiff jpeg compression.xps. --- source/fitz/load-tiff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c index 5806bc00..a7d10d00 100644 --- a/source/fitz/load-tiff.c +++ b/source/fitz/load-tiff.c @@ -446,8 +446,8 @@ fz_decode_tiff_strips(struct tiff *tiff) fz_decode_tiff_lzw(tiff, stm, wp, wlen); break; case 6: - fz_throw(tiff->ctx, FZ_ERROR_GENERIC, "deprecated JPEG in TIFF compression not supported"); - break; + fz_warn(tiff->ctx, "deprecated JPEG in TIFF compression not fully supported"); + /* fall through */ case 7: fz_decode_tiff_jpeg(tiff, stm, wp, wlen); break; -- cgit v1.2.3