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:
commit
5948e8af3f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user