summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-11-09 11:25:24 +0000
committerCarl Hetherington <cth@carlh.net>2016-11-09 11:25:24 +0000
commit392a91d017d6d0207da0cc24db9583063ab58248 (patch)
tree52c9934d569ea0979872ee68547fe53e162eea23 /src
parent859c0627eae471aa1282c6ba0bb7cec9a16c745f (diff)
Try to fix build with OpenJPEG 1.x.
Diffstat (limited to 'src')
-rw-r--r--src/openjpeg_image.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openjpeg_image.cc b/src/openjpeg_image.cc
index 401b6aa1..e71d8141 100644
--- 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)));