summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-27 01:52:55 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-27 01:52:55 +0100
commitdf5d80026bd645a13aafb0c7b39c1a1088ed81d6 (patch)
treeb9db9281f9bcb108f97fb604857fbfc2fafb3336 /src
parent4bc307976d6378698ae9faa2b0a14352639ffbe2 (diff)
parent5b8175729ebfa5f2a6f20395b89ed78b2b468e12 (diff)
Merge branch 'master' of ssh://carlh.dnsalias.org/home/carl/git/libdcp
Diffstat (limited to 'src')
-rw-r--r--src/util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cc b/src/util.cc
index c5ddb611..2b3a6c8d 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -189,8 +189,8 @@ libdcp::decompress_j2k (uint8_t* data, int64_t size, int reduce)
opj_cio_close (cio);
- image->x1 /= pow (2, reduce);
- image->y1 /= pow (2, reduce);
+ image->x1 = rint (float(image->x1) / pow (2, reduce));
+ image->y1 = rint (float(image->y1) / pow (2, reduce));
return image;
}