summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-stream.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2014-03-24 17:32:54 +0000
committerRobin Watts <robin.watts@artifex.com>2014-04-01 14:47:49 +0100
commit9def0790e030dd7cad90b455577bb8cf0f711f93 (patch)
tree5e027759d63c15517b0cbaf665d2b03262af3df7 /source/pdf/pdf-stream.c
parentb43650e084def54cd839a2bde694ac2942d8ae4c (diff)
downloadmupdf-9def0790e030dd7cad90b455577bb8cf0f711f93.tar.xz
Tidy up code in pdf_load_compressed_inline_image
After rushing to get the fix for a crash in, I realised the routine could be simplified a bit.
Diffstat (limited to 'source/pdf/pdf-stream.c')
-rw-r--r--source/pdf/pdf-stream.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/pdf/pdf-stream.c b/source/pdf/pdf-stream.c
index 159e64a4..54cf87fe 100644
--- a/source/pdf/pdf-stream.c
+++ b/source/pdf/pdf-stream.c
@@ -371,9 +371,6 @@ pdf_load_compressed_inline_image(pdf_document *doc, pdf_obj *dict, int length, f
{
fz_context *ctx = doc->ctx;
fz_compressed_buffer *bc = fz_malloc_struct(ctx, fz_compressed_buffer);
- fz_stream *istm = NULL;
-
- fz_var(istm);
fz_try(ctx)
{
@@ -382,9 +379,9 @@ pdf_load_compressed_inline_image(pdf_document *doc, pdf_obj *dict, int length, f
stm = pdf_open_inline_stream(doc, dict, length, stm, &bc->params);
stm = fz_open_leecher(stm, bc->buffer);
- istm = fz_open_image_decomp_stream(ctx, stm, &bc->params, &dummy_l2factor);
+ stm = fz_open_image_decomp_stream(ctx, stm, &bc->params, &dummy_l2factor);
- image->tile = fz_decomp_image_from_stream(ctx, istm, image, indexed, 0, 0);
+ image->tile = fz_decomp_image_from_stream(ctx, stm, image, indexed, 0, 0);
}
fz_catch(ctx)
{