Use signed number to calculate frame offset.

This commit is contained in:
Bartosz Taudul 2019-08-17 15:22:54 +02:00
parent e9080bdbcd
commit 26be78530f

View File

@ -3344,7 +3344,7 @@ void Worker::ProcessFrameImage( const QueueFrameImage& ev )
assert( it != m_pendingFrameImageData.end() );
auto& frames = m_data.framesBase->frames;
const auto fidx = ev.frame - m_data.frameOffset + 1;
const auto fidx = int64_t( ev.frame ) - m_data.frameOffset + 1;
if( m_onDemand && fidx <= 1 )
{
m_pendingFrameImageData.erase( it );