Minor bug fix when the resolution is not introduced
This commit is contained in:
1 parent
8d14c447eb
commit
f82a625790
2 files changed
+12
No files matched your search
@@ -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 );
|
||||
|
||||
Reference in new issue
Block a user