Merge pull request #653 from volvet/fix_colorspace_check

fix colorsapce check
This commit is contained in:
Licai Guo 2014-04-09 08:53:59 +08:00
commit 8591173d98

View File

@ -296,7 +296,7 @@ int CWelsH264SVCEncoder::InitializeInternal(SWelsSvcCodingParam* pCfg) {
#endif//REC_FRAME_COUNT
const int32_t iColorspace = pCfg->iInputCsp;
if (0 == iColorspace) {
if (videoFormatI420 != iColorspace) {
WelsLog (m_pEncContext, WELS_LOG_ERROR, "CWelsH264SVCEncoder::Initialize(), invalid iInputCsp= %d.\n", iColorspace);
Uninitialize();
return cmInitParaError;