fixed bug for NeedDynamicAdjust()

This commit is contained in:
huade 2015-11-16 08:57:38 +08:00
parent b5d890c1ea
commit 0d4d32efbd

View File

@ -160,8 +160,8 @@ int32_t NeedDynamicAdjust (void* pConsumeTime, const int32_t iSliceNum) {
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,