X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fstereo_picture_frame.cc;h=e645c7df613412ee1973727409fa4dba396866bc;hb=refs%2Fheads%2F1.0-templates;hp=82f84f3f97489ebdc2b437c90601567b10e2699b;hpb=89d5fe15b399eae5afad0b856f2d7b267a1c86c0;p=libdcp.git diff --git a/src/stereo_picture_frame.cc b/src/stereo_picture_frame.cc index 82f84f3f..e645c7df 100644 --- a/src/stereo_picture_frame.cc +++ b/src/stereo_picture_frame.cc @@ -38,6 +38,7 @@ #include "colour_conversion.h" #include "compose.hpp" #include "j2k.h" +#include "decryption_context.h" #include #include @@ -49,12 +50,12 @@ using namespace dcp; * @param reader Reader for the MXF file. * @param n Frame within the asset, not taking EntryPoint into account. */ -StereoPictureFrame::StereoPictureFrame (ASDCP::JP2K::MXFSReader* reader, int n, ASDCP::AESDecContext* c) +StereoPictureFrame::StereoPictureFrame (ASDCP::JP2K::MXFSReader* reader, int n, shared_ptr c) { /* XXX: unfortunate guesswork on this buffer size */ _buffer = new ASDCP::JP2K::SFrameBuffer (4 * Kumu::Megabyte); - if (ASDCP_FAILURE (reader->ReadFrame (n, *_buffer, c))) { + if (ASDCP_FAILURE (reader->ReadFrame (n, *_buffer, c->decryption()))) { boost::throw_exception (DCPReadError (String::compose ("could not read video frame %1 of %2", n))); } }