>From 2386efcddfd6ff4b78bcf4493bf83698874e44a1 Mon Sep 17 00:00:00 2001
From: Ponsanthini <[email protected]>
Date: Tue, 7 Jan 2025 17:09:44 +0530
Subject: [PATCH] Fix max supported input resolution check

---
 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 0fa1cffa2..ead908013 100755
--- a/source/common/param.cpp
+++ b/source/common/param.cpp
@@ -1667,7 +1667,7 @@ int x265_check_params(x265_param* param)
 {
 #define CHECK(expr, msg) check_failed |= _confirm(param, expr, msg)
     int check_failed = 0; /* abort if there is a fatal configuration
problem */
-    CHECK((param->sourceWidth >= 8192 && param->sourceHeight >= 4320),
"Input video resolution exceeds the maximum supported 8K resolution of
8192x4320");
+    CHECK((param->sourceWidth > 8192 && param->sourceHeight > 4320),
"Input video resolution exceeds the maximum supported 8K resolution of
8192x4320");
     CHECK(param->uhdBluray == 1 && (X265_DEPTH != 10 || param->internalCsp
!= 1 || param->interlaceMode != 0),
         "uhd-bd: bit depth, chroma subsample, source picture type must be
10, 4:2:0, progressive");
     CHECK(param->maxCUSize != 64 && param->maxCUSize != 32 &&
param->maxCUSize != 16,
-- 
2.39.2

Attachment: 0001-Fix-max-supported-input-resolution-check.patch
Description: Binary data

_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to