Merge pull request #980 from huili2/enc_remove_bsflush

remove unnecessary flush buffer in encoder
This commit is contained in:
ruil2 2014-06-18 11:32:43 +08:00
commit 778275ee1b
4 changed files with 0 additions and 11 deletions

View File

@ -182,8 +182,6 @@ int32_t WelsWriteSpsNal (SWelsSPS* pSps, SBitStringAux* pBitStringAux, int32_t*
BsRbspTrailingBits (pBitStringAux);
BsFlush (pBitStringAux);
return 0;
}
@ -233,8 +231,6 @@ int32_t WelsWriteSubsetSpsSyntax (SSubsetSps* pSubsetSps, SBitStringAux* pBitStr
BsRbspTrailingBits (pBitStringAux);
BsFlush (pBitStringAux);
return 0;
}
@ -335,8 +331,6 @@ int32_t WelsWritePpsSyntax (SWelsPPS* pPps, SBitStringAux* pBitStringAux, SParaS
BsRbspTrailingBits (pLocalBitStringAux);
BsFlush (pLocalBitStringAux);
return 0;
}

View File

@ -2827,8 +2827,6 @@ int32_t WritePadding (sWelsEncCtx* pCtx, int32_t iLen, int32_t& iSize) {
BsRbspTrailingBits (pBs);
BsFlush (pBs);
WelsUnloadNal (pCtx->pOut);
int32_t iReturn = WelsEncodeNal (&pCtx->pOut->sNalList[iNal], NULL,
pCtx->iFrameBsSize - pCtx->iPosBsBuffer,

View File

@ -193,7 +193,6 @@ int32_t WelsWriteSVCPrefixNal (SBitStringAux* pBitStringAux, const int32_t kiNal
BsWriteOneBit (pBitStringAux, false/*bStoreRefBasePicFlag*/);
BsWriteOneBit (pBitStringAux, false);
BsRbspTrailingBits (pBitStringAux);
BsFlush (pBitStringAux);
}
return 0;
}

View File

@ -751,8 +751,6 @@ int32_t WelsCodeOneSlice (sWelsEncCtx* pEncCtx, const int32_t kiSliceIdx, const
BsRbspTrailingBits (pBs);
BsFlush (pBs);
return ENC_RETURN_SUCCESS;
}