ref: 778275ee1bd100a9c3cdd21f6ca4b17fdb6b6808
parent: 4cc4f364d6a6a77cc92ee46dd497acb4091944ed
parent: 971ccccab4268f32193c89989bccf485f45b261f
author: ruil2 <ruil2@cisco.com>
date: Wed Jun 18 07:32:43 EDT 2014
Merge pull request #980 from huili2/enc_remove_bsflush remove unnecessary flush buffer in encoder
--- a/codec/encoder/core/src/au_set.cpp
+++ b/codec/encoder/core/src/au_set.cpp
@@ -182,8 +182,6 @@
BsRbspTrailingBits (pBitStringAux);
- BsFlush (pBitStringAux);
-
return 0;
}
@@ -233,8 +231,6 @@
BsRbspTrailingBits (pBitStringAux);
- BsFlush (pBitStringAux);
-
return 0;
}
@@ -334,8 +330,6 @@
BsWriteOneBit (pLocalBitStringAux, false/*pPps->bRedundantPicCntPresentFlag*/);
BsRbspTrailingBits (pLocalBitStringAux);
-
- BsFlush (pLocalBitStringAux);
return 0;
}
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -2827,8 +2827,6 @@
BsRbspTrailingBits (pBs);
- BsFlush (pBs);
-
WelsUnloadNal (pCtx->pOut);
int32_t iReturn = WelsEncodeNal (&pCtx->pOut->sNalList[iNal], NULL,
pCtx->iFrameBsSize - pCtx->iPosBsBuffer,
--- a/codec/encoder/core/src/nal_encap.cpp
+++ b/codec/encoder/core/src/nal_encap.cpp
@@ -193,7 +193,6 @@
BsWriteOneBit (pBitStringAux, false/*bStoreRefBasePicFlag*/);
BsWriteOneBit (pBitStringAux, false);
BsRbspTrailingBits (pBitStringAux);
- BsFlush (pBitStringAux);
}
return 0;
}
--- a/codec/encoder/core/src/svc_encode_slice.cpp
+++ b/codec/encoder/core/src/svc_encode_slice.cpp
@@ -751,8 +751,6 @@
BsRbspTrailingBits (pBs);
- BsFlush (pBs);
-
return ENC_RETURN_SUCCESS;
}