[x265] [PATCH] param: return gracefully on invalid analysis mode option
sagar at multicorewareinc.com
sagar at multicorewareinc.com
Wed Mar 9 10:11:12 CET 2016
# HG changeset patch
# User Sagar Kotecha<sagar at multicorewareinc.com>
# Date 1457507471 -19800
# Wed Mar 09 12:41:11 2016 +0530
# Node ID 59bb56eaa7a7d1f604eb163cdcdd23e17769b09a
# Parent 8999a30d29f479d8dc8425046c26af8581cfa2ba
param: return gracefully on invalid analysis mode option
diff -r 8999a30d29f4 -r 59bb56eaa7a7 source/common/param.cpp
--- a/source/common/param.cpp Tue Mar 08 18:30:15 2016 +0530
+++ b/source/common/param.cpp Wed Mar 09 12:41:11 2016 +0530
@@ -1200,6 +1200,8 @@
"Constant QP is incompatible with 2pass");
CHECK(param->rc.bStrictCbr && (param->rc.bitrate <= 0 || param->rc.vbvBufferSize <=0),
"Strict-cbr cannot be applied without specifying target bitrate or vbv bufsize");
+ CHECK(param->analysisMode && (param->analysisMode < X265_ANALYSIS_OFF || param->analysisMode > X265_ANALYSIS_LOAD),
+ "Invalid analysis mode. Analysis mode 0: OFF 1: SAVE : 2 LOAD");
return check_failed;
}
More information about the x265-devel
mailing list