diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-03-21 00:37:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-03-21 00:37:12 +0100 |
| commit | c047da0a3ee78f8066ef65cdbcd978cdd67fb42e (patch) | |
| tree | 351c8653add88bbb79069930ce3a8dfeddd82401 /src/cpl.cc | |
| parent | 06adefd20b469b5f7fefaa4e5c97c30e8992e8b1 (diff) | |
Allow specification of channels that need a MCASubDescriptor.
Diffstat (limited to 'src/cpl.cc')
| -rw-r--r-- | src/cpl.cc | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -385,6 +385,7 @@ CPL::write_mca_subdescriptors(xmlpp::Element* parent, shared_ptr<const SoundAsse sf->add_child("RFC5646SpokenLanguage", "r1")->add_child_text(buffer); } + /* Find the MCA subdescriptors in the MXF so that we can also write them here */ list<ASDCP::MXF::InterchangeObject*> channels; auto r = reader->reader()->OP1aHeader().GetMDObjectsByType( asdcp_smpte_dict->ul(ASDCP::MDD_AudioChannelLabelSubDescriptor), @@ -393,9 +394,6 @@ CPL::write_mca_subdescriptors(xmlpp::Element* parent, shared_ptr<const SoundAsse for (auto i: channels) { auto channel = reinterpret_cast<ASDCP::MXF::AudioChannelLabelSubDescriptor*>(i); - if (static_cast<int>(channel->MCAChannelID) > asset->channels()) { - continue; - } auto ch = mca_subs->add_child("AudioChannelLabelSubDescriptor", "r0"); channel->InstanceUID.EncodeString(buffer, sizeof(buffer)); ch->add_child("InstanceID", "r1")->add_child_text("urn:uuid:" + string(buffer)); |
