From 7f5ecd3dae499fcd9bf5de66814ab06cbecbc347 Mon Sep 17 00:00:00 2001 From: Pierre-Anthony Lemieux Date: Wed, 8 Jul 2020 16:14:30 -0700 Subject: Fix incorrect clip length when wrapping IAB (#47) --- src/AS_02_IAB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/AS_02_IAB.cpp') diff --git a/src/AS_02_IAB.cpp b/src/AS_02_IAB.cpp index 4061c26..467d0cd 100644 --- a/src/AS_02_IAB.cpp +++ b/src/AS_02_IAB.cpp @@ -272,7 +272,7 @@ AS_02::IAB::MXFWriter::Finalize() { byte_t clip_buffer[8] = { 0 }; - ui64_t size = static_cast(this->m_Writer->m_StreamOffset); + ui64_t size = static_cast(this->m_Writer->m_StreamOffset) /* total size of the KLV */ - 24 /* K and L length */; bool check = Kumu::write_BER(clip_buffer, size, 8); -- cgit v1.2.3