diff options
| author | jhurst <jhurst@cinecert.com> | 2014-09-21 13:27:43 +0000 |
|---|---|---|
| committer | jhurst <> | 2014-09-21 13:27:43 +0000 |
| commit | ab3e3df49a9d4a44a3bf11211e31bdeac3ef7bcf (patch) | |
| tree | 52023c92807dde6cb56835e957349327f1b9df0b /src/h__02_Writer.cpp | |
| parent | 8d24b6effb0377fc3041c2e024e7c5593caecc52 (diff) | |
imf bugs
date parse bug
timed-text transform removed
Diffstat (limited to 'src/h__02_Writer.cpp')
| -rw-r--r-- | src/h__02_Writer.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/h__02_Writer.cpp b/src/h__02_Writer.cpp index 1de4392..ff8d000 100644 --- a/src/h__02_Writer.cpp +++ b/src/h__02_Writer.cpp @@ -354,22 +354,26 @@ AS_02::h__AS02WriterClip::FinalizeClip(ui32_t bytes_per_frame) ui64_t current_position = m_File.Tell(); Result_t result = m_File.Seek(m_ClipStart+16); - if ( ASDCP_SUCCESS(result) ) + if ( KM_SUCCESS(result) ) { byte_t clip_buffer[8] = {0}; - bool check = Kumu::write_BER(clip_buffer, m_FramesWritten * bytes_per_frame, 8); + ui64_t size = static_cast<ui64_t>(m_FramesWritten) * bytes_per_frame; + bool check = Kumu::write_BER(clip_buffer, size, 8); assert(check); result = m_File.Write(clip_buffer, 8); } - m_File.Seek(current_position); - m_ClipStart = 0; + if ( KM_SUCCESS(result) ) + { + result = m_File.Seek(current_position); + m_ClipStart = 0; + } + return result; } - // // end h__02_Writer.cpp // |
