[x265] [PATCH] rc: set isCbr flag to true only in vbv mode and maxrate equals bitrate
aarthi at multicorewareinc.com
aarthi at multicorewareinc.com
Thu Jun 12 13:42:52 CEST 2014
# HG changeset patch
# User Aarthi Thirumalai
# Date 1402573361 -19800
# Thu Jun 12 17:12:41 2014 +0530
# Node ID a815ff71568524a7165265993666e2a1fb315eb8
# Parent c5015669b6dc6939a9bd4d25240e0cf101e8b37c
rc: set isCbr flag to true only in vbv mode and maxrate equals bitrate
diff -r c5015669b6dc -r a815ff715685 source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp Thu Jun 05 21:40:38 2014 -0500
+++ b/source/encoder/ratecontrol.cpp Thu Jun 12 17:12:41 2014 +0530
@@ -331,9 +331,8 @@
x265_log(m_param, X265_LOG_WARNING, "VBV maxrate specified, but no bufsize, ignored\n");
m_param->rc.vbvMaxBitrate = 0;
}
- m_isCbr = m_param->rc.rateControlMode == X265_RC_ABR && m_param->rc.vbvMaxBitrate <= m_param->rc.bitrate;
m_isVbv = m_param->rc.vbvMaxBitrate > 0 && m_param->rc.vbvBufferSize > 0;
-
+ m_isCbr = m_param->rc.rateControlMode == X265_RC_ABR && m_isVbv && m_param->rc.vbvMaxBitrate == m_param->rc.bitrate;
m_bframes = m_param->bframes;
m_bframeBits = 0;
m_leadingNoBSatd = 0;
More information about the x265-devel
mailing list