Merge pull request #1061 from mstorsjo/welsenc-init-defaults

Use GetDefaultParams instead of memset to initialize SEncParamExt in the console test app
This commit is contained in:
ruil2 2014-07-04 10:21:36 +08:00
commit 2bb23a79ed

View File

@ -204,8 +204,6 @@ int ParseConfig (CReadConfig& cRdCfg, SSourcePicture* pSrcPic, SEncParamExt& pSv
int32_t iRet = 0;
int8_t iLayerCount = 0;
// memset(&pSvcParam, 0, sizeof(WelsSVCParamConfig));
while (!cRdCfg.EndOfFile()) {
long iRd = cRdCfg.ReadLine (&strTag[0]);
if (iRd > 0) {
@ -669,7 +667,7 @@ int ProcessEncoding (ISVCEncoder* pPtrEnc, int argc, char** argv, bool bConfigFi
int iParsedNum = 1;
memset (&sFbi, 0, sizeof (SFrameBSInfo));
memset (&sSvcParam, 0, sizeof (SEncParamExt));
pPtrEnc->GetDefaultParams(&sSvcParam);
memset (&fs.sRecFileName[0][0], 0, sizeof (fs.sRecFileName));
FillSpecificParameters (sSvcParam);