From 3e1ee0a500bd0b513db4bdf18a9cb052f42404d4 Mon Sep 17 00:00:00 2001 From: msheby Date: Fri, 1 Feb 2008 00:42:18 +0000 Subject: Commit a bunch of portability fixes (64- vs. 32-bit types). --- src/MPEG2_Parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/MPEG2_Parser.cpp') 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); } -- cgit v1.2.3