shithub: openh264

Download patch

ref: 2620f4bcfd9bdc382918679bdb2077fd05501156
parent: ee01b3afafee7ad4ca8ef567b6106f4d510e9c53
parent: 549a1b9bf4b1a087160569f8ef234decb0e7360a
author: sijchen <sijchen@cisco.com>
date: Mon Dec 14 04:44:01 EST 2015

Merge pull request #2310 from shihuade/MultiThread_V4.5_LayerSizeFixed

fixed layer size update bugs

--- a/codec/encoder/core/src/slice_multi_threading.cpp
+++ b/codec/encoder/core/src/slice_multi_threading.cpp
@@ -511,9 +511,7 @@
   int32_t iSliceIdx     = 0;
 
   if (!kbIsDynamicSlicingMode) {
-    pSliceBs    = &pCtx->pSliceBs[0];
-    iLayerSize  = pSliceBs->uiBsPos;    // assign with base pSlice first
-    iSliceIdx   = 0;
+    pSliceBs      = &pCtx->pSliceBs[0];
     iNalIdxBase   = pLbi->iNalCount = 0;
     while (iSliceIdx < iSliceCount) {
       if (pSliceBs != NULL && pSliceBs->uiBsPos > 0) {