From 47db40337a2bf3ecd7444df4257265bd83a8d553 Mon Sep 17 00:00:00 2001 From: Pierre-Anthony Lemieux Date: Tue, 18 Aug 2020 12:43:10 -0700 Subject: Fix IABEssenceClipWrappedElement key (#59) --- src/AS_02_IAB.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/AS_02_IAB.cpp') 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); -- cgit v1.2.3