Try to fix build with OpenJPEG 1.x.
authorCarl Hetherington <cth@carlh.net>
Wed, 9 Nov 2016 11:25:24 +0000 (11:25 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 9 Nov 2016 11:25:24 +0000 (11:25 +0000)
src/openjpeg_image.cc

index 401b6aa171d3d422ff9ed80a2304140ddbbb3240..e71d8141ec26b76fd2c2b8efed9d76572f0124f8 100644 (file)
@@ -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)));