[x265] [PATCH] rc: bug fix in crf mode ; correct qscale set for all the frames.

Aarthi Priya Thirumalai aarthi at multicorewareinc.com
Tue Jan 28 12:57:34 CET 2014


# HG changeset patch
# User Aarthi Thirumalai (aarthi at multicorewareinc.com)
# Date 1390910023 -19800
#      Tue Jan 28 17:23:43 2014 +0530
# Branch stable
# Node ID 154f020f6edacd92517b8ced5c0d4dacf808791c
# Parent  ddd4e4e328d2e626a88b6318781ee160c781be91
rc: bug fix in crf mode ;correct qscale set for all the frames.

diff -r ddd4e4e328d2 -r 154f020f6eda source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp Tue Jan 28 01:47:11 2014 -0600
+++ b/source/encoder/ratecontrol.cpp Tue Jan 28 17:23:43 2014 +0530
@@ -518,7 +518,7 @@
             q = Clip3(lqmin, lqmax, q);
         }

-        else if (cfg->param.rc.rateControlMode == X265_RC_CRF && qCompress
!= 1)
+        else if (cfg->param.rc.rateControlMode == X265_RC_CRF && qCompress
!= 1 && framesDone == 0)
         {
             q = qp2qScale(ABR_INIT_QP) / fabs(cfg->param.rc.ipFactor);
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140128/ef171685/attachment.html>


More information about the x265-devel mailing list