Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -173,7 +173,8 @@ void CWelsH264SVCEncoder::InitEncoder (void) { · 172 unmodified lines | ||
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | m_pWelsTrace->SetTraceLevel (WELS_LOG_ERROR); |
| 176 | − WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s", VERSION_NUMBER); | |
| 176 | + WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s", | |
| 177 | + VERSION_NUMBER); | |
| 177 | 178 | #ifdef REC_FRAME_COUNT |
| 178 | 179 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, |
| 179 | 180 | "CWelsH264SVCEncoder::InitEncoder, m_uiCountFrameNum= %d, m_iCspInternal= 0x%x\n", m_uiCountFrameNum, m_iCspInternal); |
| @@ -421,6 +422,8 @@ int CWelsH264SVCEncoder::EncodeFrame (const SSourcePicture* kpSrcPic, SFrameBSIn · 241 unmodified lines | ||
| 421 | 422 | if (! (kpSrcPic && m_bInitialFlag && pBsInfo)) { |
| 422 | 423 | return cmInitParaError; |
| 423 | 424 | } |
| 425 | + if (kpSrcPic->iColorFormat != videoFormatI420) | |
| 426 | + return cmInitParaError; | |
| 424 | 427 | |
| 425 | 428 | const int32_t kiEncoderReturn = EncodeFrameInternal (kpSrcPic, pBsInfo); |
| 426 | 429 | |