[x265] [PATCH] rc: fix slicetype in 2-pass

Divya Manivannan divya at multicorewareinc.com
Thu Sep 8 15:25:31 CEST 2016


# HG changeset patch
# User Divya Manivannan <divya at multicorewareinc.com>
# Date 1473326258 -19800
#      Thu Sep 08 14:47:38 2016 +0530
# Node ID 9ac02e07d12a64636062c6eedc66471dabfeaeac
# Parent  67e07065c67877477144761fff3be08243a080a4
rc: fix slicetype in 2-pass

diff -r 67e07065c678 -r 9ac02e07d12a source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp	Thu Sep 08 09:43:43 2016 +0000
+++ b/source/encoder/ratecontrol.cpp	Thu Sep 08 14:47:38 2016 +0530
@@ -2003,8 +2003,8 @@
 {
     // B-frames are not directly subject to VBV,
     // since they are controlled by referenced P-frames' QPs.
-    double lmin = m_lmin[m_sliceType];
-    double lmax = m_lmax[m_sliceType];
+    double lmin = m_lmin[rce->sliceType];
+    double lmax = m_lmax[rce->sliceType];
     double q0 = q;
     if (m_isVbv && m_currentSatd > 0 && curFrame)
     {


More information about the x265-devel mailing list