diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-04 01:06:30 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-04 01:06:30 +0200 |
commit | 4d125739c1ac42d629360a7e2700410e788028c7 (patch) | |
tree | a6cb6812fcde435c79ab646b3496c075e4e0a094 /xps | |
parent | fc5ff7b56e0e0797570eba81a39e13d40aaccb40 (diff) | |
download | mupdf-4d125739c1ac42d629360a7e2700410e788028c7.tar.xz |
Change how files are opened with fz_openfd/file/filew.
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) { |