X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fcolour_conversion.cc;h=6cf4ed646a6b9625e269f3eed5ccfd2b6dcd8357;hb=da44da6f31f97d39ca91c35955e573e76371f2c2;hp=57e73a5b5c02133b65d30b5d544cc48a7b03a130;hpb=444809fb888ed99803f2d19c94d3faef067cf348;p=dcpomatic.git diff --git a/src/lib/colour_conversion.cc b/src/lib/colour_conversion.cc index 57e73a5b5..6cf4ed646 100644 --- a/src/lib/colour_conversion.cc +++ b/src/lib/colour_conversion.cc @@ -95,7 +95,7 @@ ColourConversion::ColourConversion (cxml::NodePtr node, int version) } } - _yuv_to_rgb = static_cast (node->optional_number_child("YUVToRGB").get_value_or (dcp::YUV_TO_RGB_REC601)); + _yuv_to_rgb = static_cast(node->optional_number_child("YUVToRGB").get_value_or(static_cast(dcp::YUVToRGB::REC601))); auto m = node->node_children ("Matrix"); if (!m.empty ()) {