summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hurst <jhurst@cinecert.com>2020-09-08 09:13:21 -0700
committerGitHub <noreply@github.com>2020-09-08 09:13:21 -0700
commita4821b725f76f1272f96770560c10a20f6462298 (patch)
tree5d3811063c6f862945a99fdc8f825f27798907c3 /src
parent474dfebead4e815d5ca374eeccb1c05360b31962 (diff)
parent47db40337a2bf3ecd7444df4257265bd83a8d553 (diff)
Merge pull request #64 from sandflow/issues/0059-incorrect-essence-element-key
Fix IABEssenceClipWrappedElement key
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);