mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 01:28:06 +02:00
Nest JBIG2 prediction if statements together
ltp can only become truthy if predition is true.
This commit is contained in:
parent
02a5f9435a
commit
2a9fe573c0
1 changed files with 4 additions and 4 deletions
|
@ -269,10 +269,10 @@ var Jbig2Image = (function Jbig2ImageClosure() {
|
|||
if (prediction) {
|
||||
var sltp = decoder.readBit(contexts, pseudoPixelContext);
|
||||
ltp ^= sltp;
|
||||
}
|
||||
if (ltp) {
|
||||
bitmap.push(bitmap[bitmap.length - 1]); // duplicate previous row
|
||||
continue;
|
||||
if (ltp) {
|
||||
bitmap[i] = row;//bitmap[i - 1]); // duplicate previous row
|
||||
continue;
|
||||
}
|
||||
}
|
||||
var row = new Uint8Array(width);
|
||||
bitmap.push(row);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue