Merge pull request #249 from mstorsjo/encconsole-arg-parsing-ifdef
Fix parsing of the -drec option if ENABLE_FRAME_DUMP isn't set
This commit is contained in:
commit
ec576baf25
@ -562,8 +562,9 @@ int ParseCommandLine (int argc, char** argv, SWelsSvcCodingParam& pSvcParam, SFi
|
||||
#ifdef ENABLE_FRAME_DUMP
|
||||
SDLayerParam* pDLayer = &pSvcParam.sDependencyLayers[iLayer];
|
||||
pDLayer->sRecFileName[iLen] = '\0';
|
||||
strncpy (pDLayer->sRecFileName, argv[n++], iLen); // confirmed_safe_unsafe_usage
|
||||
strncpy (pDLayer->sRecFileName, argv[n], iLen); // confirmed_safe_unsafe_usage
|
||||
#endif//ENABLE_FRAME_DUMP
|
||||
n++;
|
||||
}
|
||||
|
||||
else if (!strcmp (pCommand, "-sw") && (n + 1 < argc)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user