ref: bf35b6fee791dda2ba378a4c8aa9ebc455967856
parent: 19f5eb0932f31e72190d57b869e196486822580a
author: sijchen <[email protected]>
date: Mon Jan 11 10:04:53 EST 2016
add a debug trace if encoder returns error
--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -381,8 +381,11 @@
const int32_t kiEncoderReturn = EncodeFrameInternal (kpSrcPic, pBsInfo);
- if (kiEncoderReturn != cmResultSuccess)
+ if (kiEncoderReturn != cmResultSuccess) {
+ WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_DEBUG,
+ "CWelsH264SVCEncoder::EncodeFrame() not succeed, err=%d", kiEncoderReturn);
return kiEncoderReturn;
+ }
#ifdef REC_FRAME_COUNT
++ m_uiCountFrameNum;