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:
Ethan Hugg 2014-01-28 11:05:31 -08:00
commit ec576baf25

View File

@ -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)) {