projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
859c062
)
Try to fix build with OpenJPEG 1.x.
author
Carl Hetherington
<cth@carlh.net>
Wed, 9 Nov 2016 11:25:24 +0000
(11:25 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 9 Nov 2016 11:25:24 +0000
(11:25 +0000)
src/openjpeg_image.cc
patch
|
blob
|
history
diff --git
a/src/openjpeg_image.cc
b/src/openjpeg_image.cc
index 401b6aa171d3d422ff9ed80a2304140ddbbb3240..e71d8141ec26b76fd2c2b8efed9d76572f0124f8 100644
(file)
--- a/
src/openjpeg_image.cc
+++ b/
src/openjpeg_image.cc
@@
-53,6
+53,11
@@
OpenJPEGImage::OpenJPEGImage (opj_image_t* image)
DCP_ASSERT (_opj_image->numcomps == 3);
}
+#ifdef LIBDCP_OPENJPEG1
+typedef int32_t OPJ_INT32;
+typedef uint8_t OPJ_BYTE;
+#endif
+
OpenJPEGImage::OpenJPEGImage (OpenJPEGImage const & other)
{
_opj_image = reinterpret_cast<opj_image_t*> (malloc (sizeof (opj_image_t)));