diff options
| author | msheby <msheby@cinecert.com> | 2013-07-06 01:10:05 +0000 |
|---|---|---|
| committer | msheby <> | 2013-07-06 01:10:05 +0000 |
| commit | 638de490cccf18a3ca388b037f4d66d64872a2bd (patch) | |
| tree | 4b3ad0f7f28b9d8447b13825eabaa14cfe00a947 /src/AS_02_PCM.cpp | |
| parent | da3da86ad7cafbd2155aba92dfcfa0cc96efde2a (diff) | |
fix incorrect determination of m_ContainerDuration
Diffstat (limited to 'src/AS_02_PCM.cpp')
| -rw-r--r-- | src/AS_02_PCM.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/AS_02_PCM.cpp b/src/AS_02_PCM.cpp index 66de6e9..2a63aa3 100644 --- a/src/AS_02_PCM.cpp +++ b/src/AS_02_PCM.cpp @@ -131,7 +131,8 @@ AS_02::PCM::MXFReader::h__Reader::OpenRead(const std::string& filename, const AS m_ClipEssenceBegin = m_File.Tell(); m_SamplesPerFrame = AS_02::MXF::CalcSamplesPerFrame(*wave_descriptor, edit_rate); - m_ContainerDuration = reader.Length() / m_SamplesPerFrame; + m_ContainerDuration = static_cast<ui32_t>(8ULL * reader.Length() / + (m_SamplesPerFrame * wave_descriptor->ChannelCount * wave_descriptor->QuantizationBits)); } } |
