fixed layer size update bugs

This commit is contained in:
huade 2015-12-14 14:56:09 +08:00
parent ee01b3afaf
commit 549a1b9bf4

View File

@ -511,9 +511,7 @@ int32_t AppendSliceToFrameBs (sWelsEncCtx* pCtx, SLayerBSInfo* pLbi, const int32
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) {