Minor bug fix when the resolution is not introduced

This commit is contained in:
jfmcarreira committed 2014-01-30 01:02:30 +00:00
1 parent 8d14c447eb
commit f82a625790
2 files changed
+12

No files matched your search

+7
View File
@@ -140,6 +140,7 @@ Void InputStream::init( QString filename, UInt width, UInt height )
//Error
return;
}
m_iStatus = 1;
return;
@@ -234,6 +235,12 @@ Void InputStream::readFrame()
{
UInt64 bytes_read = 0;
if( m_iStatus == 0 )
{
return;
}
UInt64 frame_bytes_input = m_uiWidth * m_uiHeight * 1.5;
bytes_read = fread( &( m_pppcInputPel[0][0][0] ), sizeof(Pel), m_uiWidth * m_uiHeight, m_pFile );