ref: 525ad9e7c8e7a3d5a4be4202956b4c14da3d4c91
parent: 1a32ae71208a936765459e587af150c0a7aa7168
author: Martin Storsjö <[email protected]>
date: Tue Feb 18 06:27:27 EST 2014
Remove unnecessary checks/initialization from the Initialize method Initialize2 does the same checks and initializes the same fields.
--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -208,11 +208,6 @@
iInitType, (void*)argv);
return cmInitParaError;
}
- if (m_bInitialFlag) {
- WelsLog (m_pEncContext, WELS_LOG_WARNING, "CWelsH264SVCEncoder::Initialize(), reinitialize, m_bInitialFlag= %d\n",
- m_bInitialFlag);
- Uninitialize();
- }
SWelsSvcCodingParam sConfig (true);
if(iInitType == INIT_TYPE_PARAMETER_BASED)
@@ -280,7 +275,6 @@
++ i;
}
#endif//REC_FRAME_COUNT
- m_iSrcListSize = 1;
return Initialize2 (&sConfig);
}