From fe4c98bdc865290d10e70ebab7e48247d390f4c4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 1 Feb 2013 21:12:06 +0000 Subject: Unfinished attempt to overwrite existing; tricky because you need to delay writes of the MXF header until you know lots of stuff about the JP2K file (to fill in the picture descriptor). --- asdcplib/src/h__Writer.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'asdcplib/src/h__Writer.cpp') diff --git a/asdcplib/src/h__Writer.cpp b/asdcplib/src/h__Writer.cpp index 662e0f82..d743e300 100755 --- a/asdcplib/src/h__Writer.cpp +++ b/asdcplib/src/h__Writer.cpp @@ -32,6 +32,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "AS_DCP_internal.h" #include "KLV.h" +using std::cout; using namespace ASDCP; using namespace ASDCP::MXF; @@ -644,6 +645,17 @@ ASDCP::h__Writer::WriteEKLVPacket(const ASDCP::FrameBuffer& FrameBuf, const byte return result; } +Result_t +ASDCP::h__Writer::FakeWriteEKLVPacket(int size) +{ + Result_t result = RESULT_OK; + + m_StreamOffset += size; + m_File.Seek(size, Kumu::SP_POS); + + return result; +} + // standard method of writing the header and footer of a completed MXF file // -- cgit v1.2.3