ref: ecb7fbc6a05083422254ceeb5bf0f0d0d8d10a5c
parent: 8a12d8a0681a17425c1a3bb6bd34259417056d9f
author: volvet <qizh@cisco.com>
date: Tue Apr 8 12:50:44 EDT 2014
fix colorsapce check
--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -296,7 +296,7 @@
#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;