summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)));