Fix have same fmt and reload all

This commit is contained in:
2014-12-16 02:19:56 +00:00
parent b19dc41857
commit 84eb5a6849
2 changed files with 17 additions and 7 deletions
+8 -1
View File
@@ -142,7 +142,14 @@ public:
}
Bool haveSameFmt( PlaYUVerFrame* other ) const
{
return ( m_uiWidth == other->getWidth() ) && ( m_uiHeight == other->getHeight() ) && ( m_iPixelFormat == other->getPelFormat() );
if( other )
{
return ( m_uiWidth == other->getWidth() ) && ( m_uiHeight == other->getHeight() ) && ( m_iPixelFormat == other->getPelFormat() );
}
else
{
return false;
}
}
Pel*** getPelBufferYUV() const
{