shithub: openh264

Download patch

ref: 0d4d32efbd08447038a9b231f8f755a3b74de01b
parent: b5d890c1ea946fcbc2325480383da5e04cff11fa
author: huade <[email protected]>
date: Mon Nov 16 03:57:38 EST 2015

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,