shithub: openh264

Download patch

ref: 549a1b9bf4b1a087160569f8ef234decb0e7360a
parent: ee01b3afafee7ad4ca8ef567b6106f4d510e9c53
author: huade <huashi@cisco.com>
date: Mon Dec 14 09:56:09 EST 2015

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) {