[x265] [PATCH] Use maximum frame size calculation of access unit 0 for all the key frames

aruna at multicorewareinc.com aruna at multicorewareinc.com
Mon Mar 26 07:05:41 CEST 2018


# HG changeset patch
# User Aruna Matheswaran <aruna at multicorewareinc.com>
# Date 1521806936 -19800
#      Fri Mar 23 17:38:56 2018 +0530
# Node ID cda71a3fbc5f5d66944028f17c3e3eb7579adb38
# Parent  2e370d98c806ea6ca4c9395bcd23f79cec22f2fb
Use maximum frame size calculation of access unit 0 for all the key frames

diff -r 2e370d98c806 -r cda71a3fbc5f source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp	Fri Mar 23 15:51:41 2018 +0530
+++ b/source/encoder/ratecontrol.cpp	Fri Mar 23 17:38:56 2018 +0530
@@ -1290,7 +1290,7 @@
         else
         {
             /* The spec has a special case for the first frame. */
-            if (rce->encodeOrder == 0)
+            if (curFrame->m_lowres.bKeyframe)
             {
                 /* 1.5 * (Max( PicSizeInSamplesY, fR * MaxLumaSr) + MaxLumaSr * (AuCpbRemovalTime[ 0 ] -AuNominalRemovalTime[ 0 ])) ? MinCr */
                 double fr = 1. / 300;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265-clone.patch
Type: text/x-patch
Size: 920 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180326/7c1a6bb2/attachment.bin>


More information about the x265-devel mailing list