shithub: openh264

Download patch

ref: 7624b360f0a355dabac820a9e1f897386e5a2d71
parent: a8286234bba2d693dbf39350b342137aaa2831ea
parent: d215a5f879483aaca6dba6abe4ca5f139f192829
author: ruil2 <[email protected]>
date: Fri Jul 25 05:47:15 EDT 2014

Merge pull request #1214 from mstorsjo/use-min-qp

Actually use iMinQp in WelRcPictureInitBufferBasedQp

--- a/codec/encoder/core/src/ratectl.cpp
+++ b/codec/encoder/core/src/ratectl.cpp
@@ -1012,7 +1012,7 @@
     iMinQp = MIN_SCREEN_QP;
 
   pEncCtx->iGlobalQp += pEncCtx->iDropNumber;
-  pEncCtx->iGlobalQp = WELS_CLIP3 (pEncCtx->iGlobalQp, MIN_SCREEN_QP, MAX_SCREEN_QP);
+  pEncCtx->iGlobalQp = WELS_CLIP3 (pEncCtx->iGlobalQp, iMinQp, MAX_SCREEN_QP);
 }
 void  WelsRcInitModule (void* pCtx, RC_MODES iRcMode) {
   sWelsEncCtx* pEncCtx = (sWelsEncCtx*)pCtx;