X-Git-Url: https://git.piment-noir.org/?p=deb_x265.git;a=blobdiff_plain;f=debian%2Fpatches%2Fbug_fix_for_validatefanout_param_analysis-mode_save_and_load.patch;fp=debian%2Fpatches%2Fbug_fix_for_validatefanout_param_analysis-mode_save_and_load.patch;h=1048433ecae78eb6e39e779c077a80fb7f618585;hp=0000000000000000000000000000000000000000;hb=4d13a1de5d07bb3e234ec43bf4877ae2df27b8de;hpb=72b9787e2806694c5bc5609dd7c2e5dbbfaa4b2f diff --git a/debian/patches/bug_fix_for_validatefanout_param_analysis-mode_save_and_load.patch b/debian/patches/bug_fix_for_validatefanout_param_analysis-mode_save_and_load.patch new file mode 100644 index 0000000..1048433 --- /dev/null +++ b/debian/patches/bug_fix_for_validatefanout_param_analysis-mode_save_and_load.patch @@ -0,0 +1,16 @@ +--- 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)\ + {\