--- /dev/null
+--- a/source/x265.cpp
++++ b/source/x265.cpp
+@@ -772,12 +772,9 @@
+ {\
+ bErr = 0;\
+ p = strstr(paramBuf, opt "=");\
+- char* q = strstr(paramBuf, "no-"opt);\
+ if (p && sscanf(p, opt "=%d" , &i) && param_val != i)\
+ bErr = 1;\
+- else if (!param_val && !q)\
+- bErr = 1;\
+- else if (param_val && (q || !strstr(paramBuf, opt)))\
++ else if (param_val && strstr(paramBuf, "no-"opt))\
+ bErr = 1;\
+ if (bErr)\
+ {\