[x265] [PATCH] cli: bug fix for validatefanout param analysis-mode=save and load

gopu at multicorewareinc.com gopu at multicorewareinc.com
Tue Nov 4 05:16:23 CET 2014


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1415074574 -19800
#      Tue Nov 04 09:46:14 2014 +0530
# Node ID 5b278b3c4435340f918d2e23193e878cfefe99da
# Parent  a8ec469d7fb1de024edef71220c91f67e777ad9d
cli: bug fix for validatefanout param analysis-mode=save and load

diff -r a8ec469d7fb1 -r 5b278b3c4435 source/x265.cpp
--- a/source/x265.cpp	Mon Nov 03 14:32:14 2014 -0600
+++ b/source/x265.cpp	Tue Nov 04 09:46:14 2014 +0530
@@ -774,12 +774,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)\
         {\


More information about the x265-devel mailing list