Only seek file if open an input

This commit is contained in:
2015-03-19 00:13:49 +00:00
parent 42f46f3dd6
commit 482d0aef38
+4 -1
View File
@@ -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;
}