[x265] [PATCH] rc: fix bug in using strict-cbr option

Steve Borho steve at borho.org
Tue Jan 13 13:18:37 CET 2015


On 01/13, aarthi at multicorewareinc.com wrote:
> # 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

queued

> 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;
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel

-- 
Steve Borho


More information about the x265-devel mailing list