From bbbadac707e1a16e8a982f966132159db94364ba Mon Sep 17 00:00:00 2001 From: jhurst Date: Wed, 22 Oct 2014 19:19:49 +0000 Subject: phdr: o Finished FrameBuffer::Dump() o Minor comment changes o Added support for -W and some verbosity to phdr-unwrap o Removed spurious "m_FramesWritten++" that was causing master metadata tin increment the duration. asdcp: o Set streamID byte of the PHDRImageMetadataItem UL to zero to meet canonical expectations. o Added some verbosity to as-02-unwrap o Fixed partitioning off-by-one in h__AS02WriterFrame::WriteEKLVPacket() --- src/h__02_Writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/h__02_Writer.cpp') diff --git a/src/h__02_Writer.cpp b/src/h__02_Writer.cpp index ff8d000..745166c 100644 --- a/src/h__02_Writer.cpp +++ b/src/h__02_Writer.cpp @@ -191,7 +191,7 @@ AS_02::h__AS02WriterFrame::WriteEKLVPacket(const ASDCP::FrameBuffer& FrameBuf,co m_IndexWriter.PushIndexEntry(Entry); } - if ( m_FramesWritten > 0 && ( m_FramesWritten % m_PartitionSpace ) == 0 ) + if ( m_FramesWritten > 1 && ( ( m_FramesWritten + 1 ) % m_PartitionSpace ) == 0 ) { m_IndexWriter.ThisPartition = m_File.Tell(); m_IndexWriter.WriteToFile(m_File); -- cgit v1.2.3