]> git.parisson.com Git - pdf.js.git/commitdiff
Fixed bug, used pixBytes instead of rowBytes
authorsbarman <sbarman@L3CWZ5T.(none)>
Sat, 25 Jun 2011 02:40:51 +0000 (19:40 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Sat, 25 Jun 2011 02:40:51 +0000 (19:40 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 48fc8f1ae2be90793815a97b895012fb01b13a4d..a34cd7c42cba8357ce2ab876fe69f8dc9102f027 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -708,7 +708,7 @@ var PredictorStream = (function() {
         var rawBytes = this.stream.getBytes(rowBytes);
 
         var bufferLength = this.bufferLength;
-        var buffer = this.ensureBuffer(bufferLength + pixBytes);
+        var buffer = this.ensureBuffer(bufferLength + rowBytes);
 
         var currentRow = buffer.subarray(bufferLength, bufferLength + rowBytes);
         var prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength);