diff options
Diffstat (limited to 'xps')
-rw-r--r-- | xps/xps_tiff.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/xps/xps_tiff.c b/xps/xps_tiff.c index 8aabb084..c4fdbfcd 100644 --- a/xps/xps_tiff.c +++ b/xps/xps_tiff.c @@ -358,7 +358,6 @@ xps_expand_tiff_colormap(struct tiff *tiff) static int xps_decode_tiff_strips(struct tiff *tiff) { - fz_buffer buf; fz_stream *stm; int error; @@ -454,14 +453,8 @@ xps_decode_tiff_strips(struct tiff *tiff) for (i = 0; i < rlen; i++) rp[i] = bitrev[rp[i]]; - /* create a fz_buffer on the stack */ - buf.refs = 2; - buf.data = rp; - buf.len = rlen; - buf.cap = rlen; - /* the strip decoders will close this */ - stm = fz_openbuffer(&buf); + stm = fz_openmemory(rp, rlen); switch (tiff->compression) { |