From 2ae1b3b075425b54336a7d2695951836c2862de5 Mon Sep 17 00:00:00 2001 From: NAKAZATO Hajime Date: Fri, 11 Jan 2019 18:42:00 +0900 Subject: [PATCH] See ITU-T Rec. T.800 (1999 CDV1.0) Table I-14 --- glymur/jp2box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glymur/jp2box.py b/glymur/jp2box.py index 645e0689..3fa55d2e 100644 --- a/glymur/jp2box.py +++ b/glymur/jp2box.py @@ -2581,7 +2581,7 @@ def parse(cls, fptr, offset, length): Instance of the current capture resolution box. """ read_buffer = fptr.read(10) - (rn1, rd1, rn2, rd2, re1, re2) = struct.unpack('>HHHHBB', read_buffer) + (rn1, rd1, rn2, rd2, re1, re2) = struct.unpack('>HHHHbb', read_buffer) vres = rn1 / rd1 * math.pow(10, re1) hres = rn2 / rd2 * math.pow(10, re2)