[x265] [PATCH] rc : correct max AU size for first frame

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Wed Oct 1 21:16:33 CEST 2014


# HG changeset patch
# User Aarthi Thirumalai
# Date 1412189053 -19800
#      Thu Oct 02 00:14:13 2014 +0530
# Node ID 07b9168a967236e84abe2decf3f26bab463f9d89
# Parent  2a55baeb89cf5d1573edadb2f1dbb4f8334d990f
rc : correct max AU size for first frame

diff -r 2a55baeb89cf -r 07b9168a9672 source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp	Wed Oct 01 23:18:57 2014 +0530
+++ b/source/encoder/ratecontrol.cpp	Thu Oct 02 00:14:13 2014 +0530
@@ -1106,7 +1106,7 @@
                 /* 1.5 * (Max( PicSizeInSamplesY, fR * MaxLumaSr) + MaxLumaSr * (AuCpbRemovalTime[ 0 ] -AuNominalRemovalTime[ 0 ])) ? MinCr */
                 double fr = 1. / 300;
                 int picSizeInSamplesY = m_param->sourceWidth * m_param->sourceHeight;
-                rce->frameSizeMaximum = 8 * 1.5 * (X265_MAX(picSizeInSamplesY, fr * enc->m_vps.ptl.maxLumaSrForLevel) + enc->m_vps.ptl.maxLumaSrForLevel * m_frameDuration) / mincr;
+                rce->frameSizeMaximum = 8 * 1.5 * X265_MAX(picSizeInSamplesY, fr * enc->m_vps.ptl.maxLumaSrForLevel) / mincr;
             }
             else
             {


More information about the x265-devel mailing list