summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Bünzli <zeniko@gmail.com>2013-08-16 23:21:04 +0200
committerRobin Watts <robin.watts@artifex.com>2013-08-28 13:35:54 +0100
commita6772e77b84a59b59ffdf501f9c5991fbcec4a3d (patch)
tree79a909f923b91a696155fe2ed1206a57dc6cb3f6
parent4dc6cbedb4ef789c8c8ebd4c83095d0198050350 (diff)
downloadmupdf-a6772e77b84a59b59ffdf501f9c5991fbcec4a3d.tar.xz
support deprecated JPEG-in-TIFF compression
This fixes at least 2347 - old-style tiff jpeg compression.xps.
-rw-r--r--source/fitz/load-tiff.c4
1 files 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;