[x265] [PATCH] rc: always use frameSizeEstimted for bits in updateVbvPlan

santhoshini at multicorewareinc.com santhoshini at multicorewareinc.com
Thu May 22 10:49:19 CEST 2014


# HG changeset patch
# User Santhoshini Sekar <santhoshini at multicorewareinc.com>
# Date 1400748424 -19800
#      Thu May 22 14:17:04 2014 +0530
# Node ID 8883aa66b346bb0fbc3f92155d173b5533336f7e
# Parent  8ac70ae728744dabf2df5ad62aee3c3e6574ba5a
rc: always use frameSizeEstimted for bits in updateVbvPlan

diff -r 8ac70ae72874 -r 8883aa66b346 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Thu May 22 11:37:29 2014 +0530
+++ b/source/encoder/encoder.cpp	Thu May 22 14:17:04 2014 +0530
@@ -203,13 +203,12 @@
     {
         FrameEncoder *encoder = &m_frameEncoder[encIdx];
         double bits;
-        bits = encoder->m_rce.frameSizePlanned;
+        bits = encoder->m_rce.frameSizeEstimated;
         if (!encoder->m_rce.isActive)
         {
             encIdx = (encIdx + 1) % param->frameNumThreads;
             continue;
         }
-        bits = X265_MAX(bits, encoder->m_rce.frameSizeEstimated);
         rc->bufferFill -= bits;
         rc->bufferFill = X265_MAX(rc->bufferFill, 0);
         rc->bufferFill += encoder->m_rce.bufferRate;


More information about the x265-devel mailing list