ref: 316f9f4dcb18fbc70f4665d5e104acb7240b2f4a
parent: 30a4962135190b01d7dee836429ecfbb025672bb
author: [email protected] <[email protected]>
date: Tue Mar 20 04:29:25 EDT 2018
remove redundant condition
--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -727,7 +727,7 @@
int32_t iValue = * ((int32_t*)pOption);
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
"CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_IDR_INTERVAL iValue = %d", iValue);
- if (iValue <= -1 || iValue == 0) {
+ if ( iValue <= -1 ) {
iValue = 0;
}
if (iValue == (int32_t)m_pEncContext->pSvcParam->uiIntraPeriod) {