shithub: openh264

Download patch

ref: 74b9a3f7e112cf81c06812d353f62fb3113af082
parent: cfae723e96f53282876b60d27fc4b4d41f14c31a
author: Huade Shi (huashi) <huashi@cisco.com>
date: Sun Mar 26 18:46:00 EDT 2017

Multi-thread-fixed:RBC#1711:update RC Gom init condition

--- a/codec/encoder/core/src/ratectl.cpp
+++ b/codec/encoder/core/src/ratectl.cpp
@@ -515,9 +515,7 @@
 void RCInitOneSliceInformation(sWelsEncCtx* pEncCtx, SSlice* pSlice) {
 
   bool bGomRC = (RC_OFF_MODE == pEncCtx->pSvcParam->iRCMode ||
-                 RC_BUFFERBASED_MODE == pEncCtx->pSvcParam->iRCMode ||
-                 (RC_TIMESTAMP_MODE == pEncCtx->pSvcParam->iRCMode &&
-                 pEncCtx->pSvcParam->iUsageType == SCREEN_CONTENT_REAL_TIME) ) ? false : true;
+                 RC_BUFFERBASED_MODE == pEncCtx->pSvcParam->iRCMode ) ? false : true;
   if(bGomRC) {
     SRCSlicing* pSOverRc        = &pSlice->sSlicingOverRc;
     const int32_t kiBitsPerMb   = pEncCtx->pWelsSvcRc[pEncCtx->uiDependencyId].iBitsPerMb;