summaryrefslogtreecommitdiff
path: root/src/h__02_Writer.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2014-10-22 19:19:49 +0000
committerjhurst <>2014-10-22 19:19:49 +0000
commitbbbadac707e1a16e8a982f966132159db94364ba (patch)
treed9511574a643707fd7f012aa1a69187866a12f83 /src/h__02_Writer.cpp
parent9b450aad2327719d051e986549f0416e17b5dbff (diff)
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()
Diffstat (limited to 'src/h__02_Writer.cpp')
-rw-r--r--src/h__02_Writer.cpp2
1 files changed, 1 insertions, 1 deletions
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);