changeset 12659:3116be008af1 Release_3.4

app: Limit the size of the picture buffer in non abr-ladder encodes to 1
author Aruna Matheswaran <aruna@multicorewareinc.com>
date Thu, 14 May 2020 13:00:56 +0530
parents e1b5f3683986
children ee92f3678280
files source/abrEncApp.cpp
diffstat 1 files changed, 1 insertions(+-), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@ namespace X265_NS {
     {
         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++)