[x265] [PATCH] Fix min VBV fullness configuration

Kirithika Kalirathnam kirithika at multicorewareinc.com
Thu Mar 28 07:24:37 UTC 2024


>From 3e71cb2d706e73a39624ddf321cb744d212f8a97 Mon Sep 17 00:00:00 2001
From: Kirithika <kirithika at multicorewareinc.com>
Date: Wed, 10 Jan 2024 12:36:00 +0530
Subject: [PATCH] Fix min VBV fullness configuration

---
 source/encoder/ratecontrol.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/encoder/ratecontrol.cpp b/source/encoder/ratecontrol.cpp
index 08327c52d..ad748313d 100644
--- a/source/encoder/ratecontrol.cpp
+++ b/source/encoder/ratecontrol.cpp
@@ -2419,7 +2419,7 @@ double RateControl::clipQscale(Frame* curFrame,
RateControlEntry* rce, double q)
                     {
                         finalDur = x265_clip3(0.4, 1.0, totalDuration);
                     }
-                    targetFill = X265_MIN(m_bufferFill + totalDuration *
m_vbvMaxRate * 0.5, m_bufferSize * (1 - m_minBufferFill * finalDur));
+                    targetFill = X265_MIN(m_bufferFill + totalDuration *
m_vbvMaxRate * 0.5, m_bufferSize * (m_minBufferFill * finalDur));
                     if (bufferFillCur < targetFill)
                     {
                         q *= 1.01;
-- 
2.28.0.windows.1

*Thanks,*
*Kirithika*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20240328/e7d831d7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265-bug-fix-patch2.diff
Type: application/octet-stream
Size: 1127 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20240328/e7d831d7/attachment.obj>


More information about the x265-devel mailing list