[x265] [PATCH] Bug Fix - copy last Recq value to thread local rce object

Aarthi Thirumalai aarthi at multicorewareinc.com
Fri Sep 20 09:27:05 CEST 2013


# HG changeset patch
# User Aarthi Thirumalai
# Date 1379662010 -19800
#      Fri Sep 20 12:56:50 2013 +0530
# Node ID 0e60d5bc9fc47dfeffc8bb3178b8cf16427a363c
# Parent  20d8fa0541d8cf77d52106c08022ae97f3ff5de8
Bug Fix - copy last Recq value to thread local rce object

Missed this out in previous patch.

diff -r 20d8fa0541d8 -r 0e60d5bc9fc4 source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp	Thu Sep 19 22:26:46 2013 -0500
+++ b/source/encoder/ratecontrol.cpp	Fri Sep 20 12:56:50 2013 +0530
@@ -116,6 +116,8 @@
             double q = qScale2qp(rateEstimateQscale(rce));
             qp = Clip3(MIN_QP, MAX_QP, (int)(q + 0.5));
             rce->qpaRc = q;
+            /* copy value of lastRceq into thread local rce struct *to be used in RateControlEnd() */
+            rce->qRceq = lastRceq;
             accumPQpUpdate();
             break;
         }


More information about the x265-devel mailing list