ref: 5948e8af3f666a9a0582130af7b0f5050dbef551
parent: 7b3bf074b3f220d7625890e617ae9750cb83c2a8
parent: 2f6a986d7c87372d3e297b2476721df4b5ae02e3
author: ruil2 <ruil2@cisco.com>
date: Mon Aug 11 09:31:57 EDT 2014
Merge pull request #1259 from mstorsjo/fix-singlecpu-tests Remove a needless, no-op change of the number of threads
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -1862,14 +1862,6 @@
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;