From 5e63427d5b08481e85fc4703a9e88c3072b9a1ce Mon Sep 17 00:00:00 2001 From: jhurst Date: Thu, 9 Apr 2020 12:19:56 -0700 Subject: channel label detection changed because not all labels have the magic number --- src/MXF.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/MXF.cpp') 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); -- cgit v1.2.3