changeset 12646:37916f420742

Enable Cbr in rate-control 2 pass This commit enables CBR based QP tuning for rate-control 2 Pass and enables the signalling of CBR flag in HRD for CBR bitstreams
author Kirithika <kirithika@multicorewareinc.com>
date Mon, 06 Jan 2020 12:06:48 +0530
parents eca79c288012
children 93ec18bf8595
files source/encoder/ratecontrol.cpp
diffstat 1 files changed, 1 insertions(+-), 1 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/ratecontrol.cpp	Fri Oct 18 14:18:00 2019 +0530
+++ b/source/encoder/ratecontrol.cpp	Mon Jan 06 12:06:48 2020 +0530
@@ -269,7 +269,7 @@ RateControl::RateControl(x265_param& p, 
         x265_log(m_param, X265_LOG_WARNING, "NAL HRD parameters require VBV parameters, ignored\n");
         m_param->bEmitHRDSEI = 0;
     }
-    m_isCbr = m_param->rc.rateControlMode == X265_RC_ABR && m_isVbv && !m_2pass && m_param->rc.vbvMaxBitrate <= m_param->rc.bitrate;
+    m_isCbr = m_param->rc.rateControlMode == X265_RC_ABR && m_isVbv && m_param->rc.vbvMaxBitrate <= m_param->rc.bitrate;
     if (m_param->rc.bStrictCbr && !m_isCbr)
     {
         x265_log(m_param, X265_LOG_WARNING, "strict CBR set without CBR mode, ignored\n");