X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmono_picture_asset_writer.cc;h=b6f8cc1b20e3f6b9dae0b29477ed7ea6d6357a45;hb=880c6f67ca3637c54c97c51081e0649743292af3;hp=1ef079dcf9fd233373b1d69887be15cfcce6e65e;hpb=e4d5298e7a179d4103581cba05cbc516f94acf60;p=libdcp.git diff --git a/src/mono_picture_asset_writer.cc b/src/mono_picture_asset_writer.cc index 1ef079dc..b6f8cc1b 100644 --- a/src/mono_picture_asset_writer.cc +++ b/src/mono_picture_asset_writer.cc @@ -39,6 +39,7 @@ #include "exceptions.h" #include "picture_asset.h" #include "dcp_assert.h" +#include "encryption_context.h" #include #include @@ -86,7 +87,7 @@ MonoPictureAssetWriter::write (uint8_t* data, int size) uint64_t const before_offset = _state->mxf_writer.Tell (); string hash; - ASDCP::Result_t const r = _state->mxf_writer.WriteFrame (_state->frame_buffer, _encryption_context, _hmac_context, &hash); + ASDCP::Result_t const r = _state->mxf_writer.WriteFrame (_state->frame_buffer, _encryption_context->encryption(), _encryption_context->hmac(), &hash); if (ASDCP_FAILURE (r)) { boost::throw_exception (MXFFileError ("error in writing video MXF", _file.string(), r)); }