mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
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:
commit
6b2ed504b7
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue