[x265] [PATCH] Allow non-conformance resolutions
Richard
ccc7922 at foxmail.com
Sat Mar 28 01:01:47 UTC 2026
From: Mr-Z-2697 <74594146+Mr-Z-2697 at users.noreply.github.com>
---
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 862da5d14..c09214d37 100755
--- a/source/common/param.cpp
+++ b/source/common/param.cpp
@@ -1677,7 +1677,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((uint64_t)param->sourceWidth * param->sourceHeight > 142606336,
+ CHECK((uint64_t)param->sourceWidth * param->sourceHeight > 142606336ULL && !param->bAllowNonConformance,
"Input video resolution exceeds the maximum supported luma samples 142,606,336 (16384x8704) of Level 7.2.");
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");
--
2.53.0.windows.2
More information about the x265-devel
mailing list