shithub: openh264

Download patch

ref: ee09f4d7bfc37a278e7eabfadc289a0c39f515e3
parent: d04c7b93473afad575104ab8130a3fd16c236858
author: Sijia Chen <sijchen@cisco.com>
date: Tue Jul 7 13:49:11 EDT 2015

let qp clip to min/max qp available in all rc settings, so as to avoid qp exceed 51

--- 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;
 }