From 4189bb610e90e35c2f21aa53acf27a672283101c Mon Sep 17 00:00:00 2001 From: sbarman Date: Fri, 24 Jun 2011 19:40:51 -0700 Subject: [PATCH] Fixed bug, used pixBytes instead of rowBytes --- pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index 48fc8f1ae..a34cd7c42 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);