summaryrefslogtreecommitdiff
path: root/src/MPEG2_Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MPEG2_Parser.cpp')
-rwxr-xr-xsrc/MPEG2_Parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/MPEG2_Parser.cpp b/src/MPEG2_Parser.cpp
index 8b5592e..f7e6dce 100755
--- a/src/MPEG2_Parser.cpp
+++ b/src/MPEG2_Parser.cpp
@@ -435,7 +435,8 @@ ASDCP::MPEG2::Parser::h__Parser::OpenRead(const char* filename)
if ( ASDCP_SUCCESS(result) )
{
- m_ParamsDelegate.m_VDesc.ContainerDuration = m_FileReader.Size() / 65536; // a gross approximation
+ ui64_t tmp = m_FileReader.Size() / 65536; // a gross approximation
+ m_ParamsDelegate.m_VDesc.ContainerDuration = (ui32_t) tmp;
m_Parser.SetDelegate(&m_ParserDelegate);
m_FileReader.Seek(0);
}