projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
485c951
)
Try to fix build on OS X.
author
Carl Hetherington
<cth@carlh.net>
Tue, 8 Dec 2015 09:59:03 +0000
(09:59 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 8 Dec 2015 09:59:03 +0000
(09:59 +0000)
src/j2k.cc
patch
|
blob
|
history
diff --git
a/src/j2k.cc
b/src/j2k.cc
index 635d50244cc4f717d8d20b4ff900773aa074d67a..f19b563221e922fb88aa2161aee213626aa46784 100644
(file)
--- a/
src/j2k.cc
+++ b/
src/j2k.cc
@@
-136,8
+136,8
@@
dcp::decompress_j2k (uint8_t* data, int64_t size, int reduce)
opj_destroy_codec (decoder);
opj_stream_destroy (stream);
- image->x1 = rint (float(image->x1) / pow (2, reduce));
- image->y1 = rint (float(image->y1) / pow (2, reduce));
+ image->x1 = rint (float(image->x1) / pow (2
.0f
, reduce));
+ image->y1 = rint (float(image->y1) / pow (2
.0f
, reduce));
return shared_ptr<OpenJPEGImage> (new OpenJPEGImage (image));
}