projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
4bc3079
)
Merge branch 'master' of ssh://carlh.dnsalias.org/home/carl/git/libdcp
author
Carl Hetherington
<cth@carlh.net>
Sat, 27 Oct 2012 00:52:55 +0000
(
01:52
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 27 Oct 2012 00:52:55 +0000
(
01:52
+0100)
src/util.cc
patch
|
blob
|
history
diff --git
a/src/util.cc
b/src/util.cc
index c5ddb611b4ec0f1eeaadaefcbd9afd0f39ae9f42..2b3a6c8defac8567cb80593e180fc631924c670b 100644
(file)
--- 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;
}