shithub: openh264

Download patch

ref: a8ae1346101be6ec1b5f72a861932fbda0cffcde
parent: d04c7b93473afad575104ab8130a3fd16c236858
parent: ee09f4d7bfc37a278e7eabfadc289a0c39f515e3
author: sijchen <sijchen@cisco.com>
date: Wed Jul 8 13:02:17 EDT 2015

Merge pull request #2026 from sijchen/fix_rc

[Encoder] let qp clip to min/max qp available in all rc settings

--- a/codec/encoder/core/src/ratectl.cpp
+++ b/codec/encoder/core/src/ratectl.cpp
@@ -506,10 +506,7 @@
 
     iLumaQp =  WELS_DIV_ROUND (iLumaQp * INT_MULTIPLY - pEncCtx->pVaa->sAdaptiveQuantParam.iAverMotionTextureIndexToDeltaQp,
                                INT_MULTIPLY);
-
-    if (! ((pEncCtx->pSvcParam->iRCMode == RC_BITRATE_MODE) && (pEncCtx->pSvcParam->bEnableFrameSkip == false)))
-      iLumaQp = WELS_CLIP3 (iLumaQp, pWelsSvcRc->iMinQp, pWelsSvcRc->iMaxQp);
-
+    iLumaQp = WELS_CLIP3 (iLumaQp, pWelsSvcRc->iMinQp, pWelsSvcRc->iMaxQp);
   }
   pEncCtx->iGlobalQp = iLumaQp;
 }