# HG changeset patch
# User Steve Borho <[email protected]>
# Date 1384846815 21600
# Tue Nov 19 01:40:15 2013 -0600
# Node ID baee128fdb029ff3379a3dc7b2574b3d52a6e264
# Parent ca2f274c30d71d3275a8d2f242205b86fd423574
common: validate --subme value
diff -r ca2f274c30d7 -r baee128fdb02 source/common/common.cpp
--- a/source/common/common.cpp Tue Nov 19 01:39:48 2013 -0600
+++ b/source/common/common.cpp Tue Nov 19 01:40:15 2013 -0600
@@ -474,6 +474,10 @@
"Search Range must be more than 0");
CHECK(param->searchRange >= 32768,
"Search Range must be less than 32768");
+ CHECK(param->subpelRefine > X265_MAX_SUBPEL_LEVEL,
+ "subme must be than or equal to X265_MAX_SUBPEL_LEVEL (7)");
+ CHECK(param->subpelRefine < 0,
+ "subme must be greater than or equal to 0");
CHECK(param->keyframeMax < 0,
"Keyframe interval must be 0 (auto) 1 (intra-only) or greater than
1");
CHECK(param->frameNumThreads < 0,
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel