From: sbarman Date: Sat, 25 Jun 2011 02:40:51 +0000 (-0700) Subject: Fixed bug, used pixBytes instead of rowBytes X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4189bb610e90e35c2f21aa53acf27a672283101c;p=pdf.js.git Fixed bug, used pixBytes instead of rowBytes --- diff --git a/pdf.js b/pdf.js index 48fc8f1..a34cd7c 100644 --- 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);