mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
fix "JPX Out of Packets" Error (issues 4358, 4659, 4814)
This commit is contained in:
parent
8bfc4b84cb
commit
141ecfa61f
1 changed files with 5 additions and 0 deletions
|
@ -540,6 +540,11 @@ var JpxImage = (function JpxImageClosure() {
|
|||
codeblock.precinctNumber = precinctNumber;
|
||||
codeblock.subbandType = subband.type;
|
||||
codeblock.Lblock = 3;
|
||||
|
||||
if (codeblock.tbx1_ <= codeblock.tbx0_ ||
|
||||
codeblock.tby1_ <= codeblock.tby0_) {
|
||||
continue;
|
||||
}
|
||||
codeblocks.push(codeblock);
|
||||
// building precinct for the sub-band
|
||||
var precinct = precincts[precinctNumber];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue