From 932b942a51bef4e2dd2de9f83aa5b68ad07f60f9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 7 Jul 2013 00:39:15 +0100 Subject: Working decryption via KDM. --- src/picture_frame.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/picture_frame.cc') 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")); } } -- cgit v1.2.3