Skip to content

Commit

Permalink
Modify JP2_SIGNATURE to align with the value specified in ISO/IEC 154…
Browse files Browse the repository at this point in the history
…44-1-2004 I.5.1 (#320)
  • Loading branch information
Alex Dolski committed Sep 18, 2019
1 parent caa8e7f commit 0ee7c4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
filenames containing spaces.
* Fixed two separate bugs in KakaduNativeProcessor that both caused empty
regions to appear in certain images.
* Fixed overly restrictive signature verification in KakaduDemoProcessor and
OpenJpegProcessor that could cause errors with some valid images.
* Fixed TurboJpegProcessor not respecting the `processor.background_color`
configuration key.
* Fixed the `PurgeItemFromCache` API method not working with S3Cache and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ private static SegmentMarker forBytes(byte[] twoBytes) {

private static final byte[] JP2_SIGNATURE = new byte[] {
0x00, 0x00, 0x00, 0x0c, 0x6a, 0x50, 0x20, 0x20, 0x0d, 0x0a,
(byte) 0x87, 0x0a, 0x00, 0x00, 0x00, 0x14, 0x66, 0x74, 0x79, 0x70,
0x6a, 0x70, 0x32 };
(byte) 0x87, 0x0a };

private static final byte[] XMP_UUID = new byte[] {
(byte) 0xbe, 0x7a, (byte) 0xcf, (byte) 0xcb, (byte) 0x97,
Expand Down

0 comments on commit 0ee7c4a

Please sign in to comment.