mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 17:18:07 +02:00
ensureBuffer can modify this.buffer, so read it after ensureBuffer
This commit is contained in:
parent
e928f18736
commit
3f713de5fe
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
pdf.js
|
@ -671,9 +671,9 @@ var PredictorStream = (function() {
|
|||
var predictor = this.stream.getByte();
|
||||
var rawBytes = this.stream.getBytes(rowBytes);
|
||||
|
||||
var buffer = this.buffer;
|
||||
var bufferLength = this.bufferLength;
|
||||
this.ensureBuffer(bufferLength + pixBytes);
|
||||
var buffer = this.buffer;
|
||||
|
||||
var currentRow = buffer.subarray(bufferLength, bufferLength + rowBytes);
|
||||
var prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue