Improve buffering and fix memory leaks

Use a dedicated class to handle frame buffer
Fix memory leak in stream handler and frame allocation
This commit is contained in:
jfmcarreira committed 2017-09-22 00:54:46 +01:00
1 parent 58146a6b06
commit 1d07dd6b38
12 files changed
+159 -160

No files matched your search

+3 -3
View File
@@ -419,7 +419,7 @@ Int PlaYUVerTools::RateReductionOperation()
abEOF = m_apcInputStreams[0]->setNextFrame();
if( !abEOF )
{
m_apcInputStreams[0]->readNextFrame();
m_apcInputStreams[0]->readNextFrame();
}
}
return 0;
@@ -500,7 +500,7 @@ Int PlaYUVerTools::QualityOperation()
abEOF[s] = m_apcInputStreams[s]->setNextFrame();
if( !abEOF[s] )
{
m_apcInputStreams[s]->readNextFrame();
m_apcInputStreams[s]->readNextFrame();
}
}
}
@@ -584,7 +584,7 @@ Int PlaYUVerTools::ModuleOperation()
abEOF[s] = m_apcInputStreams[s]->setNextFrame();
if( !abEOF[s] )
{
m_apcInputStreams[s]->readNextFrame();
m_apcInputStreams[s]->readNextFrame();
}
}
}