X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fpicture_frame.cc;h=b4d72f6f45713bd07d4878da5227989a45cac9e5;hb=d5ec30b6d746177e97707085b9e6b709e41ecc20;hp=7e6bc1f8f30dfaff8818dfe397b62035243a1f2b;hpb=5b6d753439207fcb33b84690bcc22d142a7c3bfa;p=libdcp.git diff --git a/src/picture_frame.cc b/src/picture_frame.cc index 7e6bc1f8..b4d72f6f 100644 --- a/src/picture_frame.cc +++ b/src/picture_frame.cc @@ -37,7 +37,7 @@ using namespace libdcp; * @param mxf_path Path to the asset's MXF file. * @param n Frame within the asset, not taking EntryPoint into account. */ -MonoPictureFrame::MonoPictureFrame (string mxf_path, int n) +MonoPictureFrame::MonoPictureFrame (string mxf_path, int n, ASDCP::AESDecContext* c) { ASDCP::JP2K::MXFReader reader; if (ASDCP_FAILURE (reader.OpenRead (mxf_path.c_str()))) { @@ -47,7 +47,7 @@ MonoPictureFrame::MonoPictureFrame (string mxf_path, int n) /* XXX: unfortunate guesswork on this buffer size */ _buffer = new ASDCP::JP2K::FrameBuffer (4 * Kumu::Megabyte); - if (ASDCP_FAILURE (reader.ReadFrame (n, *_buffer))) { + if (ASDCP_FAILURE (reader.ReadFrame (n, *_buffer, c))) { boost::throw_exception (DCPReadError ("could not read video frame")); } }