shithub: openh264

Download patch

ref: ccaf242b800e0f3c0871870d0bb4e53e350a81ed
parent: 4da932426cd55708d3fc0227c4b7cc59f125fcad
author: Vic Lee <llyzs.vic@gmail.com>
date: Thu May 28 06:19:55 EDT 2015

Copy QP value when changing encoder config

--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -4607,6 +4607,7 @@
       pOldDlp->iSpatialBitrate	= pNewDlp->iSpatialBitrate;
 
       pOldDlp->uiProfileIdc		= pNewDlp->uiProfileIdc;			// value of profile IDC (0 for auto-detection)
+      pOldDlp->iDLayerQp		= pNewDlp->iDLayerQp;
 
       /* Derived variants below */
       pOldDlpInternal->iTemporalResolution	= pNewDlpInternal->iTemporalResolution;