summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-08 13:12:45 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-08 13:12:45 +0100
commit4f064050310c70ec179b5de6ddb6f88ec824babf (patch)
tree258679a34ba5d803cd176383e865cd7e830f8650 /src
parent5a7c2ce189876b50fa29754e56c14d28550adbd8 (diff)
Don't read crytographic key unless the asset is encrypted.
Diffstat (limited to 'src')
-rw-r--r--src/mxf.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mxf.cc b/src/mxf.cc
index 0cde395c..5d90d60e 100644
--- a/src/mxf.cc
+++ b/src/mxf.cc
@@ -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);