ref: 991b05fb69056e753d181bfd31d56c6502c77b6d
parent: b5d890c1ea946fcbc2325480383da5e04cff11fa
parent: 0d4d32efbd08447038a9b231f8f755a3b74de01b
author: HaiboZhu <haibozhu@cisco.com>
date: Mon Nov 16 05:13:02 EST 2015
Merge pull request #2238 from shihuade/MultiThread_V4.0_ThreadPoolChange_V2 fixed bug for NeedDynamicAdjust()
--- a/codec/encoder/core/src/slice_multi_threading.cpp
+++ b/codec/encoder/core/src/slice_multi_threading.cpp
@@ -160,8 +160,8 @@
WelsEmms();
while (iSliceIdx < iSliceNum) {
- uiTotalConsume += pSliceConsume[iSliceIdx] + pSliceConsume[1 + iSliceIdx];
- iSliceIdx += 2;
+ uiTotalConsume += pSliceConsume[iSliceIdx];
+ iSliceIdx ++;
}
if (uiTotalConsume == 0) {
MT_TRACE_LOG (NULL, WELS_LOG_DEBUG,