fix "JPX Out of Packets" Error (issues 4358, 4659, 4814)

This commit is contained in:
fkaelberer 2014-10-20 23:53:40 +02:00
parent 8bfc4b84cb
commit 141ecfa61f

View File

@ -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];