History

add BasicInitialize UT and some fix in create/destroy encoder in the existing interface test

Sijia Chen committed 12 years ago

Commit 99dc18c1 parent da0f65e2 files · +217 −45Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 2 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+8−1
@@ -145,7 +145,14 @@ int32_t ParamValidation (SLogContext* pLogCtx, SWelsSvcCodingParam* pCfg) { · 144 unmodified lines
145145 || fMaxFrameRate - pCfg->fMaxFrameRate < -fEpsn)) {
146146 pCfg->fMaxFrameRate = fMaxFrameRate;
147147 }
148−//bitrate setting validation
148+
149+
150+ if ((pCfg->iRCMode != RC_OFF_MODE) && (pCfg->iRCMode != RC_QUALITY_MODE) && (pCfg->iRCMode != RC_BITRATE_MODE)
151+ && (pCfg->iRCMode != RC_LOW_BW_MODE)) {
152+ WelsLog (pLogCtx, WELS_LOG_ERROR, "ParamValidation(),Invalid iRCMode = %d\n", pCfg->iRCMode);
153+ return ENC_RETURN_UNSUPPORTED_PARA;
154+ }
155+ //bitrate setting validation
149156 if (pCfg->iRCMode != RC_OFF_MODE) {
150157 int32_t iTotalBitrate = 0;
151158 if (pCfg->iTargetBitrate <= 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t