Use on demand flag in GetFirstTime().

This commit is contained in:
Bartosz Taudul 2023-03-04 00:33:52 +01:00
parent f9449bc938
commit a8cc3cb06b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -2187,7 +2187,7 @@ bool Worker::AreFramesUsed() const
int64_t Worker::GetFirstTime() const
{
if( m_data.frameOffset == 0 ) return 0;
if( !m_onDemand ) return 0;
assert( m_data.framesBase->frames.size() >= 2 );
return m_data.framesBase->frames[2].start;
}