summaryrefslogtreecommitdiff
path: root/src/AS_02_IAB.cpp
diff options
context:
space:
mode:
authorPierre-Anthony Lemieux <pal@palemieux.com>2020-08-18 12:43:10 -0700
committerPierre-Anthony Lemieux <pal@palemieux.com>2020-08-18 12:43:10 -0700
commit47db40337a2bf3ecd7444df4257265bd83a8d553 (patch)
tree5d3811063c6f862945a99fdc8f825f27798907c3 /src/AS_02_IAB.cpp
parent474dfebead4e815d5ca374eeccb1c05360b31962 (diff)
Fix IABEssenceClipWrappedElement key (#59)
Diffstat (limited to 'src/AS_02_IAB.cpp')
-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);