[x265] [PATCH] app: Limit the size of the picture buffer in non abr-ladder encodes to 1

Aruna Matheswaran aruna at multicorewareinc.com
Thu May 14 11:12:39 CEST 2020


# HG changeset patch
# User Aruna Matheswaran <aruna at multicorewareinc.com>
# Date 1589441456 -19800
#      Thu May 14 13:00:56 2020 +0530
# Node ID 31e6d0119997a99e5fa1d69398b211c1cab9ee62
# Parent  9335f5b5795a06b584e182efbd840b3d5ddb8e30
app: Limit the size of the picture buffer in non abr-ladder encodes to 1

diff -r 9335f5b5795a -r 31e6d0119997 source/abrEncApp.cpp
--- a/source/abrEncApp.cpp	Tue May 12 11:40:21 2020 +0530
+++ b/source/abrEncApp.cpp	Thu May 14 13:00:56 2020 +0530
@@ -49,7 +49,7 @@
     {
         m_numEncodes = numEncodes;
         m_numActiveEncodes.set(numEncodes);
-        m_queueSize = X265_INPUT_QUEUE_SIZE;
+        m_queueSize = (numEncodes > 1) ? X265_INPUT_QUEUE_SIZE : 1;
         m_passEnc = X265_MALLOC(PassEncoder*, m_numEncodes);
 
         for (uint8_t i = 0; i < m_numEncodes; i++)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265_push.patch
Type: text/x-patch
Size: 825 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20200514/98e13df9/attachment.bin>


More information about the x265-devel mailing list