Merge pull request #980 from huili2/enc_remove_bsflush
remove unnecessary flush buffer in encoder
This commit is contained in:
commit
778275ee1b
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -751,8 +751,6 @@ int32_t WelsCodeOneSlice (sWelsEncCtx* pEncCtx, const int32_t kiSliceIdx, const
|
||||
|
||||
BsRbspTrailingBits (pBs);
|
||||
|
||||
BsFlush (pBs);
|
||||
|
||||
return ENC_RETURN_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user