Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 1 file). Show all
Unified · Split
| @@ -160,8 +160,8 @@ int32_t NeedDynamicAdjust (void* pConsumeTime, const int32_t iSliceNum) { · 159 unmodified lines | ||
| 160 | 160 | WelsEmms(); |
| 161 | 161 | |
| 162 | 162 | while (iSliceIdx < iSliceNum) { |
| 163 | − uiTotalConsume += pSliceConsume[iSliceIdx] + pSliceConsume[1 + iSliceIdx]; | |
| 164 | − iSliceIdx += 2; | |
| 163 | + uiTotalConsume += pSliceConsume[iSliceIdx]; | |
| 164 | + iSliceIdx ++; | |
| 165 | 165 | } |
| 166 | 166 | if (uiTotalConsume == 0) { |
| 167 | 167 | MT_TRACE_LOG (NULL, WELS_LOG_DEBUG, |