Fix crash in previous.
[libdcp.git] / src / colour_conversion.cc
index a5f77f0a33405270ef1c9d5dc23334d08a3728ff..59aadf1a865fb28530ed011966b2d9314692c54f 100644 (file)
@@ -168,7 +168,7 @@ ColourConversion::xyz_to_rgb () const
        DCP_ASSERT (r == 0);
 
        /* create identity matrix of inverse */
-       boost::numeric::ublas::matrix<double> xyz_to_rgb;
+       boost::numeric::ublas::matrix<double> xyz_to_rgb (3, 3);
        xyz_to_rgb.assign (boost::numeric::ublas::identity_matrix<double> (A.size1 ()));
 
        /* backsubstitute to get the inverse */