Commit | Line | Data |
---|---|---|
1 | --- a/source/x265.cpp | |
2 | +++ b/source/x265.cpp | |
3 | @@ -772,12 +772,9 @@ | |
4 | {\ | |
5 | bErr = 0;\ | |
6 | p = strstr(paramBuf, opt "=");\ | |
7 | - char* q = strstr(paramBuf, "no-"opt);\ | |
8 | if (p && sscanf(p, opt "=%d" , &i) && param_val != i)\ | |
9 | bErr = 1;\ | |
10 | - else if (!param_val && !q)\ | |
11 | - bErr = 1;\ | |
12 | - else if (param_val && (q || !strstr(paramBuf, opt)))\ | |
13 | + else if (param_val && strstr(paramBuf, "no-"opt))\ | |
14 | bErr = 1;\ | |
15 | if (bErr)\ | |
16 | {\ |