summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-11-21 14:45:48 +0000
committerRobin Watts <robin.watts@artifex.com>2012-11-21 14:48:06 +0000
commit92e95c9f19bfe54077389ecde805dafc960a62c6 (patch)
tree88d75498ead430431d45503ac92a2d53e91334f0 /fitz
parentb011965c29013b13008f01ac5da8965f78702f0c (diff)
downloadmupdf-92e95c9f19bfe54077389ecde805dafc960a62c6.tar.xz
Bug 693458: Fix previous image subsample factor commit.
Thanks to zeniko for pointing out these places that I'd missed updating the old code.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/filt_dctd.c2
-rw-r--r--fitz/stm_comp_buf.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/fitz/filt_dctd.c b/fitz/filt_dctd.c
index 3503370d..6fec2c9b 100644
--- a/fitz/filt_dctd.c
+++ b/fitz/filt_dctd.c
@@ -224,7 +224,7 @@ skip:
fz_stream *
fz_open_dctd(fz_stream *chain, int color_transform)
{
- return fz_open_resized_dctd(chain, color_transform, 1);
+ return fz_open_resized_dctd(chain, color_transform, 0);
}
fz_stream *
diff --git a/fitz/stm_comp_buf.c b/fitz/stm_comp_buf.c
index 7fa48cb0..a8ed3f4f 100644
--- a/fitz/stm_comp_buf.c
+++ b/fitz/stm_comp_buf.c
@@ -33,8 +33,8 @@ fz_open_image_decomp_stream(fz_context *ctx, fz_compressed_buffer *buffer, int *
params->u.fax.end_of_block,
params->u.fax.black_is_1);
case FZ_IMAGE_JPEG:
- if (*l2factor > 8)
- *l2factor = 8;
+ if (*l2factor > 3)
+ *l2factor = 3;
return fz_open_resized_dctd(chain, params->u.jpeg.color_transform, *l2factor);
case FZ_IMAGE_RLD:
*l2factor = 0;