Skip to content

Instantly share code, notes, and snippets.

View noizuy's full-sized avatar

noizuy

View GitHub Profile
@quietvoid
quietvoid / singlepass-scenecut-aware-qp.patch
Last active July 24, 2023 00:16
Enables x265 --scenecut-aware-qp for single pass, fixes float precision in settings string and allows offset to be set to 0
diff --git a/source/common/param.cpp b/source/common/param.cpp
index 8695ad686..f3aaccd54 100755
--- a/source/common/param.cpp
+++ b/source/common/param.cpp
@@ -1359,9 +1359,9 @@ int x265_param_parse(x265_param* p, const char* name, const char* value)
{
if (window1 > 0)
p->fwdScenecutWindow = window1;
- if (refQpDelta1 > 0)
+ if (refQpDelta1 >= 0)