summaryrefslogtreecommitdiff
path: root/src/MXF.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2020-04-09 12:19:56 -0700
committerjhurst <jhurst@cinecert.com>2020-04-09 12:19:56 -0700
commit5e63427d5b08481e85fc4703a9e88c3072b9a1ce (patch)
tree4b3e60d02a5fc9e45fd867eed5268d7649d13a44 /src/MXF.cpp
parent7b70b206a3bd767aad3a9a3c789cff9d0e9c38f2 (diff)
channel label detection changed because not all labels have the magic number
Diffstat (limited to 'src/MXF.cpp')
-rwxr-xr-xsrc/MXF.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/MXF.cpp b/src/MXF.cpp
index af406ee..5cab95e 100755
--- a/src/MXF.cpp
+++ b/src/MXF.cpp
@@ -1742,6 +1742,12 @@ ASDCP::MXF::decode_mca_string(const std::string& s, const mca_label_map_t& label
return false;
}
+ if ( ! ul_is_an_mca_channel(i->second.ul) )
+ {
+ DefaultLogSink().Error("Not a channel symbol: '%s'\n", symbol_buf.c_str());
+ return false;
+ }
+
ASDCP::MXF::AudioChannelLabelSubDescriptor *channel_descr =
new ASDCP::MXF::AudioChannelLabelSubDescriptor(dict);
GenRandomValue(channel_descr->MCALinkID);