summaryrefslogtreecommitdiff
path: root/src/asset_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-17 20:28:24 +0200
committerCarl Hetherington <cth@carlh.net>2020-08-17 21:49:09 +0200
commit56a6b3277b7acb7fcfac97ef9667467d764ea490 (patch)
treea695d68bb0f1205a0008a3c22b9f6ee3df7e3be0 /src/asset_writer.cc
parent3e07c602fdbce92a2562980ebefb39a8df95eefe (diff)
Make use of HMAC optional.ignore-hmac
Diffstat (limited to 'src/asset_writer.cc')
-rw-r--r--src/asset_writer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asset_writer.cc b/src/asset_writer.cc
index c4302f4a..055f2844 100644
--- a/src/asset_writer.cc
+++ b/src/asset_writer.cc
@@ -48,13 +48,13 @@ using namespace dcp;
* @param mxf MXF that we are writing.
* @param file File to write to.
*/
-AssetWriter::AssetWriter (MXF* mxf, boost::filesystem::path file)
+AssetWriter::AssetWriter (MXF* mxf, boost::filesystem::path file, bool write_hmac)
: _mxf (mxf)
, _file (file)
, _frames_written (0)
, _finalized (false)
, _started (false)
- , _crypto_context (new EncryptionContext (mxf->key(), mxf->standard()))
+ , _crypto_context (new EncryptionContext(mxf->key(), mxf->standard(), write_hmac))
{
}