From cc15da3e3cb47333f92d8701b03b0ef87a88bea4 Mon Sep 17 00:00:00 2001 From: jhurst Date: Sun, 22 Feb 2015 20:16:28 +0000 Subject: megasubs --- src/AS_02_TimedText.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/AS_02_TimedText.cpp') diff --git a/src/AS_02_TimedText.cpp b/src/AS_02_TimedText.cpp index fc851ec..7faa7ce 100644 --- a/src/AS_02_TimedText.cpp +++ b/src/AS_02_TimedText.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2008-2014, John Hurst +Copyright (c) 2008-2015, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -514,6 +514,9 @@ AS_02::TimedText::MXFWriter::h__Writer::SetSourceStream(ASDCP::TimedText::TimedT resourceSubdescriptor->EssenceStreamID = m_EssenceStreamID++; m_EssenceSubDescriptorList.push_back((FileDescriptor*)resourceSubdescriptor); m_EssenceDescriptor->SubDescriptors.push_back(resourceSubdescriptor->InstanceUID); + + // 72 == sizeof K, L, instanceuid, uuid + sizeof int32 + tag/len * 4 + m_HeaderSize += ( resourceSubdescriptor->MIMEMediaType.ArchiveLength() * 2 /*ArchiveLength is broken*/ ) + 72; } } -- cgit v1.2.3