diff --git a/lib/PlaYUVerStream.cpp b/lib/PlaYUVerStream.cpp index 48fafec..901e598 100644 --- a/lib/PlaYUVerStream.cpp +++ b/lib/PlaYUVerStream.cpp @@ -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; }