Merge pull request #9336 from Snuffleupagus/jpx-SIZ

Correctly extract component data from "Image and tile size" (SIZ) markers in JPEG 2000 images
This commit is contained in:
Tim van der Meij 2018-01-03 23:34:34 +01:00 committed by GitHub
commit 6b2ed504b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,8 +185,9 @@ var JpxImage = (function JpxImageClosure() {
precision: (data[j] & 0x7F) + 1,
isSigned: !!(data[j] & 0x80),
XRsiz: data[j + 1],
YRsiz: data[j + 1],
YRsiz: data[j + 2],
};
j += 3;
calculateComponentDimensions(component, siz);
components.push(component);
}