shithub: openh264

Download patch

ref: 40f4fc05bb9134896e7021c2e0acd5388222c069
parent: c1255451d71a34f1ced734ae86211e3c94d8ceeb
author: Karina <ruil2@cisco.com>
date: Mon Jun 6 13:13:22 EDT 2016

get each spatial layer qp

--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -614,7 +614,7 @@
     }
     //pStatistics->fLatestFrameRate = m_pEncContext->pWelsSvcRc->fLatestFrameRate; //TODO: finish the calculation in RC
     //pStatistics->uiBitRate = m_pEncContext->pWelsSvcRc->iActualBitRate; //TODO: finish the calculation in RC
-    pStatistics->uiAverageFrameQP = m_pEncContext->pWelsSvcRc->iAverageFrameQp;
+    pStatistics->uiAverageFrameQP = m_pEncContext->pWelsSvcRc[iDid].iAverageFrameQp;
 
     if (videoFrameTypeIDR == eFrameType || videoFrameTypeI == eFrameType) {
       pStatistics->uiIDRSentNum ++;