Merge pull request #1259 from mstorsjo/fix-singlecpu-tests

Remove a needless, no-op change of the number of threads
This commit is contained in:
ruil2 2014-08-11 13:31:57 +08:00
commit 5948e8af3f

View File

@ -1862,14 +1862,6 @@ int32_t InitSliceSettings (SLogContext* pLogCtx, SWelsSvcCodingParam* pCodingPar
pCodingParam->iCountThreadsNum = WELS_MIN (kiCpuCores, iMaxSliceCount);
pCodingParam->iMultipleThreadIdc = pCodingParam->iCountThreadsNum;
#ifndef WELS_TESTBED // for product release and non-SGE testing
if (kiCpuCores < 2) { // single CPU core, make no sense for MT parallelization
pCodingParam->iMultipleThreadIdc = 1;
pCodingParam->iCountThreadsNum = 1;
}
#endif
*pMaxSliceCount = iMaxSliceCount;
return 0;