summaryrefslogtreecommitdiff
path: root/src/AS_02_IAB.cpp
diff options
context:
space:
mode:
authorPierre-Anthony Lemieux <pal@palemieux.com>2020-07-08 16:14:30 -0700
committerPierre-Anthony Lemieux <pal@palemieux.com>2020-07-08 16:14:30 -0700
commit7f5ecd3dae499fcd9bf5de66814ab06cbecbc347 (patch)
tree8e4c7e648f1a11d63c029494637a315d9694e05c /src/AS_02_IAB.cpp
parent38daae206397d601738df407df15d1bf1caf01ae (diff)
Fix incorrect clip length when wrapping IAB (#47)
Diffstat (limited to 'src/AS_02_IAB.cpp')
-rw-r--r--src/AS_02_IAB.cpp2
1 files changed, 1 insertions, 1 deletions
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<ui64_t>(this->m_Writer->m_StreamOffset);
+ ui64_t size = static_cast<ui64_t>(this->m_Writer->m_StreamOffset) /* total size of the KLV */ - 24 /* K and L length */;
bool check = Kumu::write_BER(clip_buffer, size, 8);