[x265] [PATCH 8 of 9] common: validate --subme value

Steve Borho steve at borho.org
Tue Nov 19 09:20:15 CET 2013


On Nov 19, 2013, at 1:41 AM, Steve Borho <steve at borho.org> wrote:

> # HG changeset patch
> # User Steve Borho <steve at borho.org>
> # 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)");

this one has a typo that needs fixing prior to pushing

> +    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,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20131119/6055396d/attachment-0001.sig>


More information about the x265-devel mailing list