Only seek file if open an input
This commit is contained in:
1 parent
42f46f3dd6
commit
482d0aef38
1 file changed
+4
-1
@@ -390,7 +390,10 @@ Bool PlaYUVerStream::openFile()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
fseek( m_pFile, m_iCurrFrameNum >= 0 ? m_iCurrFrameNum : 0, SEEK_SET );
|
||||
if ( m_bIsInput )
|
||||
{
|
||||
fseek( m_pFile, m_iCurrFrameNum >= 0 ? m_iCurrFrameNum : 0, SEEK_SET );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user