Fix playing when sequence is preloaded
This commit is contained in:
1 parent
b6b3f3e719
commit
c40194d422
1 file changed
+11
-4
+11
-4
@@ -665,12 +665,19 @@ Bool PlaYUVerStream::setNextFrame()
|
||||
{
|
||||
m_pcCurrFrame = m_pcNextFrame;
|
||||
m_iCurrFrameNum++;
|
||||
m_uiFrameBufferIndex++;
|
||||
if( m_uiFrameBufferIndex == m_uiFrameBufferSize )
|
||||
if( m_iCurrFrameNum + 1 < Int( m_uiTotalFrameNum ) )
|
||||
{
|
||||
m_uiFrameBufferIndex = 0;
|
||||
m_uiFrameBufferIndex++;
|
||||
if( m_uiFrameBufferIndex == m_uiFrameBufferSize )
|
||||
{
|
||||
m_uiFrameBufferIndex = 0;
|
||||
}
|
||||
m_pcNextFrame = m_ppcFrameBuffer[m_uiFrameBufferIndex];
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pcNextFrame = NULL;
|
||||
}
|
||||
m_pcNextFrame = m_ppcFrameBuffer[m_uiFrameBufferIndex];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user