Bugfixes and improvements

Uniform the use of unsigned long in the frame number by defining a ClpULong type
CalypFrame Add function to copyTo a specific position
This commit is contained in:
2019-02-20 22:22:43 +00:00
parent 00ec0485f4
commit ca562ae9f4
22 changed files with 88 additions and 53 deletions
+2 -2
View File
@@ -78,13 +78,13 @@ void StreamHandlerRaw::calculateFrameNumber()
if( m_pFile && m_uiNBytesPerFrame > 0 )
{
fseek( m_pFile, 0, SEEK_END );
unsigned long long int fileSize = ftell( m_pFile );
unsigned long long fileSize = ftell( m_pFile );
fseek( m_pFile, 0, SEEK_SET );
m_uiTotalNumberFrames = fileSize / m_uiNBytesPerFrame;
}
}
bool StreamHandlerRaw::seek( unsigned long long int iFrameNum )
bool StreamHandlerRaw::seek( ClpULong iFrameNum )
{
if( m_bIsInput && m_pFile )
{