[x265] fix error message for x265 check when StrictCbr is enabled

Uthayakumar Muthu uthayakumar.muthu at multicorewareinc.com
Tue Dec 3 12:39:11 UTC 2024


>From 698c9ab2c0ac94c8a2fb91ac62a764f48d03bd9a Mon Sep 17 00:00:00 2001
From: Uthayakumar Muthu <uthayakumar.muthu at multicorewareinc.com>
Date: Tue, 3 Dec 2024 18:04:43 +0530
Subject: [PATCH] Fix error message for x265 check when StrictCbr is enabled

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

diff --git a/source/common/param.cpp b/source/common/param.cpp
index 85dd5df98..72985e8fe 100755
--- a/source/common/param.cpp
+++ b/source/common/param.cpp
@@ -1869,7 +1869,7 @@ int x265_check_params(x265_param* param)
     CHECK(param->rc.rateControlMode == X265_RC_CQP && param->rc.bStatRead,
           "Constant QP is incompatible with 2pass");
     CHECK(param->rc.bStrictCbr && (param->rc.bitrate <= 0 ||
param->rc.vbvBufferSize <=0),
-          "Strict-cbr cannot be applied without specifying target bitrate
or vbv bufsize");
+          "Strict-cbr cannot be applied without specifying both target
bitrate and vbv bufsize");
     CHECK(strlen(param->analysisSave) && (param->analysisSaveReuseLevel <
0 || param->analysisSaveReuseLevel > 10),
         "Invalid analysis save refine level. Value must be between 1 and
10 (inclusive)");
     CHECK(strlen(param->analysisLoad) && (param->analysisLoadReuseLevel <
0 || param->analysisLoadReuseLevel > 10),
-- 
2.39.2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20241203/57d08b49/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-error-message-for-x265-check-when-StrictCbr-is-e.patch
Type: application/octet-stream
Size: 1306 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20241203/57d08b49/attachment.obj>


More information about the x265-devel mailing list