Fix declaration of an array
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user