Minor bugfix in PlaYUVer after previous commit
This commit is contained in:
1 parent
915621addb
commit
3754caa865
2 files changed
+3
-4
No files matched your search
@@ -39,9 +39,9 @@ PlaYUVerFrame::PlaYUVerFrame( UInt width, UInt height, Int pel_format )
|
||||
m_iPixelFormat = pel_format;
|
||||
m_iNumberChannels = 3;
|
||||
Int max_bits_per_pel = sizeof( Pel ) * 8;
|
||||
m_iBitsChannels = assert( 8 <= max_bits_per_pel );
|
||||
m_iBitsChannels = 8;
|
||||
|
||||
if( m_uiWidth == 0 || m_uiWidth == 0 || m_iPixelFormat == -1 )
|
||||
if( m_uiWidth == 0 || m_uiHeight == 0 || m_iPixelFormat == -1 || m_iBitsChannels > max_bits_per_pel )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user