summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2020-09-08 09:40:33 -0700
committerjhurst <jhurst@cinecert.com>2020-09-08 09:40:33 -0700
commit8bcb64258228e6864ca7f38ec84ab6c2cdb73440 (patch)
treeb613232449d07903a0821e4f4f6c4cac656ae330 /src
parent2b52b1cc03707a4c876b38fdd8879a27a218d498 (diff)
parenta4821b725f76f1272f96770560c10a20f6462298 (diff)
Merge branch 'master' into sha1_builtin
Diffstat (limited to 'src')
-rw-r--r--src/AS_02_IAB.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/AS_02_IAB.cpp b/src/AS_02_IAB.cpp
index b058515..e7c1fc6 100644
--- a/src/AS_02_IAB.cpp
+++ b/src/AS_02_IAB.cpp
@@ -154,6 +154,10 @@ AS_02::IAB::MXFWriter::OpenWrite(
element_ul_bytes[15] = 1;
+ /* only a single element */
+
+ element_ul_bytes[13] = 1;
+
/* write the file header*/
/* WriteAS02Header() takes ownership of desc and subdesc */
@@ -179,7 +183,7 @@ AS_02::IAB::MXFWriter::OpenWrite(
byte_t clip_buffer[RESERVED_KL_SIZE] = { 0 };
- memcpy(clip_buffer, this->m_Writer->m_Dict->ul(MDD_IMF_IABEssenceClipWrappedElement), ASDCP::SMPTE_UL_LENGTH);
+ memcpy(clip_buffer, element_ul_bytes, ASDCP::SMPTE_UL_LENGTH);
if (!Kumu::write_BER(clip_buffer + ASDCP::SMPTE_UL_LENGTH, 0, CLIP_BER_LENGTH_SIZE)) {
throw Kumu::RuntimeError(Kumu::RESULT_FAIL);