diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-08 13:12:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-08 13:12:45 +0100 |
| commit | 4f064050310c70ec179b5de6ddb6f88ec824babf (patch) | |
| tree | 258679a34ba5d803cd176383e865cd7e830f8650 /src | |
| parent | 5a7c2ce189876b50fa29754e56c14d28550adbd8 (diff) | |
Don't read crytographic key unless the asset is encrypted.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mxf.cc | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -36,6 +36,7 @@ #include <iostream> using std::string; +using std::cout; using std::list; using std::pair; using boost::shared_ptr; @@ -105,8 +106,10 @@ MXF::read_writer_info (ASDCP::WriterInfo const & info) { char buffer[64]; - Kumu::bin2UUIDhex (info.CryptographicKeyID, ASDCP::UUIDlen, buffer, sizeof (buffer)); - _key_id = buffer; + if (info.EncryptedEssence) { + Kumu::bin2UUIDhex (info.CryptographicKeyID, ASDCP::UUIDlen, buffer, sizeof (buffer)); + _key_id = buffer; + } _metadata.read (info); |
