diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-07 00:39:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-07 00:39:15 +0100 |
| commit | 932b942a51bef4e2dd2de9f83aa5b68ad07f60f9 (patch) | |
| tree | 40f81e0b4b2e04f46bab243e9c94ff24b8bcb2ef /src/picture_frame.cc | |
| parent | 4313456938d34d93239194e914b82e7a5ae14c1c (diff) | |
Working decryption via KDM.
Diffstat (limited to 'src/picture_frame.cc')
| -rw-r--r-- | src/picture_frame.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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")); } } |
