Move luminance to Interop/SMPTE metadata and remove the ISDCF metadata dialogue.
[dcpomatic.git] / src / lib / j2k_image_proxy.cc
index 13305b7f36a617dc421be1113174d755ae3180ce..fcd1689cbf2df23190fbe5f10ae46d64d8075968 100644 (file)
@@ -29,7 +29,7 @@
 #include <dcp/stereo_picture_frame.h>
 #include <dcp/colour_conversion.h>
 #include <dcp/rgb_xyz.h>
-#include <dcp/j2k.h>
+#include <dcp/j2k_transcode.h>
 #include <libcxml/cxml.h>
 DCPOMATIC_DISABLE_WARNINGS
 #include <libxml++/libxml++.h>
@@ -85,7 +85,7 @@ J2KImageProxy::J2KImageProxy (
        AVPixelFormat pixel_format,
        optional<int> forced_reduction
        )
-       : _data (eye ? frame->left() : frame->right())
+       : _data (eye == dcp::Eye::LEFT ? frame->left() : frame->right())
        , _size (size)
        , _eye (eye)
        , _pixel_format (pixel_format)