Adapt for libdcp use of enum class.
[dcpomatic.git] / src / lib / j2k_image_proxy.cc
index 13305b7f36a617dc421be1113174d755ae3180ce..98b8595290e989c086b8421269deda2819b30f11 100644 (file)
@@ -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)