summaryrefslogtreecommitdiff
path: root/src/sound_asset_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-03-01 19:44:25 +0100
committerCarl Hetherington <cth@carlh.net>2023-03-01 19:44:25 +0100
commitc76095e572fdf85e42db834c9bdb84f2bdb6fee3 (patch)
treee5187fd74d47ffa08d6836e769399e67a036751e /src/sound_asset_writer.cc
parentb3787f9db738723bdb15a2a86feeb84f1b6d593c (diff)
Add include_mca_subdescriptors flag to SoundAsset writer.v1.8.64
Diffstat (limited to 'src/sound_asset_writer.cc')
-rw-r--r--src/sound_asset_writer.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sound_asset_writer.cc b/src/sound_asset_writer.cc
index ff14407d..a0414aba 100644
--- a/src/sound_asset_writer.cc
+++ b/src/sound_asset_writer.cc
@@ -69,11 +69,12 @@ struct SoundAssetWriter::ASDCPState
};
-SoundAssetWriter::SoundAssetWriter (SoundAsset* asset, boost::filesystem::path file, bool sync)
+SoundAssetWriter::SoundAssetWriter (SoundAsset* asset, boost::filesystem::path file, bool sync, bool include_mca_subdescriptors)
: AssetWriter (asset, file)
, _state (new SoundAssetWriter::ASDCPState)
, _asset (asset)
, _sync (sync)
+ , _include_mca_subdescriptors(include_mca_subdescriptors)
{
DCP_ASSERT (!_sync || _asset->channels() >= 14);
DCP_ASSERT (!_sync || _asset->standard() == Standard::SMPTE);
@@ -130,7 +131,7 @@ SoundAssetWriter::start ()
boost::throw_exception (FileError("could not open audio MXF for writing", _file.string(), r));
}
- if (_asset->standard() == Standard::SMPTE) {
+ if (_asset->standard() == Standard::SMPTE && _include_mca_subdescriptors) {
ASDCP::MXF::WaveAudioDescriptor* essence_descriptor = nullptr;
_state->mxf_writer.OP1aHeader().GetMDObjectByType(