shithub: openh264

Download patch

ref: 2bb23a79edf98ad2197735d9d558542929aa193b
parent: 35b739c754103874afbaff0d19ddf658673c49c2
parent: 4d494cb0f195e5db0df39a1f5ef353630365a2db
author: ruil2 <ruil2@cisco.com>
date: Fri Jul 4 06:21:36 EDT 2014

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

Use GetDefaultParams instead of memset to initialize SEncParamExt in the console test app

--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -204,8 +204,6 @@
   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 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);