shithub: openh264

Download patch

ref: 8591173d9867a65a6eae0fbf409d61e0ac496c24
parent: 8a12d8a0681a17425c1a3bb6bd34259417056d9f
parent: ecb7fbc6a05083422254ceeb5bf0f0d0d8d10a5c
author: Licai Guo <[email protected]>
date: Wed Apr 9 04:53:59 EDT 2014

Merge pull request #653 from volvet/fix_colorspace_check

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;