summaryrefslogtreecommitdiff
path: root/src/picture_frame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/picture_frame.cc')
-rw-r--r--src/picture_frame.cc4
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"));
}
}