diff options
author | Tor Andersson <tor@ghostscript.com> | 2005-05-16 10:09:30 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2005-05-16 10:09:30 +0200 |
commit | 6baedd7ca60274596a7839069d65f413b138fb47 (patch) | |
tree | d48b22741e2a20fbe1975507d2a950feca71b1a1 | |
parent | a63d217eaadd11677c496069b76a88e9f6e8b5c2 (diff) | |
download | mupdf-6baedd7ca60274596a7839069d65f413b138fb47.tar.xz |
runlengthencode eod marker is apparently optional. fix decoder.
-rw-r--r-- | stream/filt_rld.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/stream/filt_rld.c b/stream/filt_rld.c index bcad4323..c36913d6 100644 --- a/stream/filt_rld.c +++ b/stream/filt_rld.c @@ -21,7 +21,14 @@ fz_processrld(fz_filter *filter, fz_buffer *in, fz_buffer *out) while (1) { if (in->rp == in->wp) + { + if (in->eof) + { + out->eof = 1; + return fz_iodone; + } return fz_ioneedin; + } if (out->wp == out->ep) return fz_ioneedout; |