diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-10-31 11:32:04 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-10-31 11:32:04 +0000 |
| commit | d23e6e10c55d0558d0d5b34d8cde0e12c0297550 (patch) | |
| tree | 9aa3b3ad01985d026e69ee6a6d60f65354f71f1b /src/mxf.cc | |
| parent | 079d5cae5c0dfbbd5b683c4e7148119de5f9b47d (diff) | |
Allow configuration of context ID used when encrypting MXFs.
Diffstat (limited to 'src/mxf.cc')
| -rw-r--r-- | src/mxf.cc | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -57,6 +57,12 @@ using boost::shared_ptr; using boost::dynamic_pointer_cast; using namespace dcp; +MXF::MXF () + : _context_id (make_uuid ()) +{ + +} + void MXF::fill_writer_info (ASDCP::WriterInfo* writer_info, string id, Standard standard) const { @@ -76,7 +82,7 @@ MXF::fill_writer_info (ASDCP::WriterInfo* writer_info, string id, Standard stand writer_info->UsesHMAC = true; if (_key_id) { - Kumu::GenRandomUUID (writer_info->ContextID); + Kumu::hex2bin (_context_id.c_str(), writer_info->ContextID, Kumu::UUID_Length, &c); writer_info->EncryptedEssence = true; unsigned int c; |
