[Pkg-javascript-commits] [pdf.js] 137/246: Fixes CCITTFaxStream regression

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:34 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 238a5f8a3002719182adf1968e27d80220f8fc34
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Thu Aug 7 21:22:04 2014 +0200

    Fixes CCITTFaxStream regression
---
 src/core/stream.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/core/stream.js b/src/core/stream.js
index 4e9921d..f1ade9c 100644
--- a/src/core/stream.js
+++ b/src/core/stream.js
@@ -2038,6 +2038,8 @@ var CCITTFaxStream = (function CCITTFaxStreamClosure() {
         if (code1 === 1) {
           this.eatBits(12);
           gotEOL = true;
+        } else if (code1 === EOF) {
+          this.eof = true;
         }
       }
 
@@ -2050,7 +2052,7 @@ var CCITTFaxStream = (function CCITTFaxStreamClosure() {
         this.eatBits(1);
       }
 
-      if (this.eoblock && !this.eoline && this.byteAlign) {
+      if (this.eoblock && gotEOL && this.byteAlign) {
         code1 = this.lookBits(12);
         if (code1 === 1) {
           this.eatBits(12);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list