X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fj2k_image_proxy.cc;h=35d70162ccfb014b695d5ef65f8b9d48488a2499;hp=44b5ebea7f6d67cce56f367e7d917f5173e4fcc1;hb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;hpb=4e83acad0c2a5c528709a175a80261b8147d3b49 diff --git a/src/lib/j2k_image_proxy.cc b/src/lib/j2k_image_proxy.cc index 44b5ebea7..35d70162c 100644 --- a/src/lib/j2k_image_proxy.cc +++ b/src/lib/j2k_image_proxy.cc @@ -30,6 +30,7 @@ #include #include #include +#include #include #include "i18n.h" @@ -39,6 +40,7 @@ using std::cout; using boost::shared_ptr; using boost::optional; using boost::dynamic_pointer_cast; +using boost::make_shared; using dcp::Data; /** Construct a J2KImageProxy from a JPEG2000 file */ @@ -107,7 +109,7 @@ J2KImageProxy::image (optional) const } } - shared_ptr image (new Image (pixel_format(), _size, true)); + shared_ptr image = make_shared (pixel_format(), _size, true); /* Copy data in whatever format (sRGB or XYZ) into our Image; I'm assuming the data is 12-bit either way.