shithub: openh264

Download patch

ref: b31049df892fa6f69ff2311b5a4c0a677bccc7b3
parent: 08c07db3c6f8ce5eff701cbc1fe7d66ffe552c43
author: Martin Storsjö <[email protected]>
date: Sat Feb 22 18:55:57 EST 2014

Respect the iDLayerQp parameter in SEncParamExt

Previously the value set in the parameter struct was ignored
completely.

--- a/codec/encoder/core/inc/param_svc.h
+++ b/codec/encoder/core/inc/param_svc.h
@@ -409,7 +409,7 @@
             pCodingParam.sSpatialLayers[iIdxSpatial].sSliceCfg.sSliceArgument.uiSliceMbNum,	// confirmed_safe_unsafe_usage
             kiLesserSliceNum * sizeof (uint32_t)) ;
 
-    pDlp->iDLayerQp = SVC_QUALITY_BASE_QP;
+    pDlp->iDLayerQp = pCodingParam.sSpatialLayers[iIdxSpatial].iDLayerQp;
 
     uiProfileIdc	= PRO_SCALABLE_BASELINE;
     ++ pDlp;