[x265] [PATCH] rc : fix bug in deciding qp for first frame in CRF
aarthi at multicorewareinc.com
aarthi at multicorewareinc.com
Fri Dec 5 11:15:27 CET 2014
# HG changeset patch
# User Aarthi Thirumalai
# Date 1417693409 -19800
# Thu Dec 04 17:13:29 2014 +0530
# Node ID 1458ad34157c89332fa598b4a34f38c214194838
# Parent a1e76461c0d4d8a1709c951499a0b4a2d8d93aaa
rc : fix bug in deciding qp for first frame in CRF
diff -r a1e76461c0d4 -r 1458ad34157c source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp Thu Dec 04 12:19:41 2014 +0530
+++ b/source/encoder/ratecontrol.cpp Thu Dec 04 17:13:29 2014 +0530
@@ -1591,7 +1591,7 @@
{
q = x265_qp2qScale(CRF_INIT_QP) / fabs(m_param->rc.ipFactor);
}
- else if (m_framesDone == 0 && !m_isVbv)
+ else if (m_framesDone == 0 && !m_isVbv && m_param->rc.rateControlMode == X265_RC_ABR)
{
/* for ABR alone, clip the first I frame qp */
double lqmax = x265_qp2qScale(ABR_INIT_QP_MAX) * m_lstep;
More information about the x265-devel
mailing list