Fix declaration of an array

This commit is contained in:
2017-09-26 16:32:12 +01:00
parent 4ffd0c6ea4
commit 11c60cb659
+2 -1
View File
@@ -67,7 +67,7 @@ PlaYUVerFrame* InterFrameVariance::process( std::vector<PlaYUVerFrame*> apcFrame
{
Int numFrames = apcFrameList.size();
Pel* pInput[numFrames];
Pel** pInput = new Pel*[numFrames];
Pel* pOutputPelYUV = m_pcFrameVariance->getPelBufferYUV()[0][0];
for( Int i = 0; i < numFrames; i++ )
@@ -101,6 +101,7 @@ PlaYUVerFrame* InterFrameVariance::process( std::vector<PlaYUVerFrame*> apcFrame
{
*pOutputPelYUV++ = m_pVariance[y][x] * 255 / maxVariance;
}
delete [] pInput;
return m_pcFrameVariance;
}