fix colorsapce check
This commit is contained in:
parent
8a12d8a068
commit
ecb7fbc6a0
@ -296,7 +296,7 @@ int CWelsH264SVCEncoder::InitializeInternal(SWelsSvcCodingParam* pCfg) {
|
|||||||
#endif//REC_FRAME_COUNT
|
#endif//REC_FRAME_COUNT
|
||||||
|
|
||||||
const int32_t iColorspace = pCfg->iInputCsp;
|
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);
|
WelsLog (m_pEncContext, WELS_LOG_ERROR, "CWelsH264SVCEncoder::Initialize(), invalid iInputCsp= %d.\n", iColorspace);
|
||||||
Uninitialize();
|
Uninitialize();
|
||||||
return cmInitParaError;
|
return cmInitParaError;
|
||||||
|
Loading…
Reference in New Issue
Block a user