Skip to content

Commit

Permalink
Merge pull request #2972 from mstorsjo/fix-stl
Browse files Browse the repository at this point in the history
Use a constructor to initialize SFilesSet
  • Loading branch information
ruil2 authored May 24, 2018
2 parents 2c711c0 + ef688d8 commit 628a237
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions codec/console/enc/src/welsenc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ typedef struct tagFilesSet {
char sRecFileName[MAX_DEPENDENCY_LAYER][MAX_FNAME_LEN];
uint32_t uiFrameToBeCoded;
bool bEnableMultiBsFile;

tagFilesSet() {
uiFrameToBeCoded = 0;
bEnableMultiBsFile = false;
for (int i = 0; i < MAX_DEPENDENCY_LAYER; i++)
sRecFileName[i][0] = '\0';
}
} SFilesSet;


Expand Down Expand Up @@ -763,14 +770,13 @@ int ProcessEncoding (ISVCEncoder* pPtrEnc, int argc, char** argv, bool bConfigFi
#if defined ( STICK_STREAM_SIZE )
FILE* fTrackStream = fopen ("coding_size.stream", "wb");
#endif
SFilesSet fs = {};
SFilesSet fs;
// for configuration file
CReadConfig cRdCfg;
int iParsedNum = 1;

memset (&sFbi, 0, sizeof (SFrameBSInfo));
pPtrEnc->GetDefaultParams (&sSvcParam);
memset (&fs.sRecFileName[0][0], 0, sizeof (fs.sRecFileName));
fs.bEnableMultiBsFile = false;

FillSpecificParameters (sSvcParam);
Expand Down

0 comments on commit 628a237

Please sign in to comment.