[x265] [PATCH] rc: fix bug in using strict-cbr option
aarthi at multicorewareinc.com
aarthi at multicorewareinc.com
Tue Jan 13 13:12:27 CET 2015
# HG changeset patch
# User Aarthi Thirumalai
# Date 1421151120 -19800
# Tue Jan 13 17:42:00 2015 +0530
# Node ID 23dc2db8baad588c0c1e10aac4e90fc5d5008f9d
# Parent 50a2071500dc4b813edb357c298867931bbf42a1
rc: fix bug in using strict-cbr option
diff -r 50a2071500dc -r 23dc2db8baad source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp Mon Jan 12 20:01:58 2015 +0530
+++ b/source/encoder/ratecontrol.cpp Tue Jan 13 17:42:00 2015 +0530
@@ -407,7 +407,7 @@
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;
- if (m_param->rc.bStrictCbr && m_isCbr)
+ if (m_param->rc.bStrictCbr && !m_isCbr)
{
x265_log(m_param, X265_LOG_WARNING, "strict CBR set without CBR mode, ignored\n");
m_param->rc.bStrictCbr = 0;
More information about the x265-devel
mailing list