From 8db47dfee5603121f074d3c0296b594e69a5e45c Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Fri, 7 Sep 2018 10:20:56 -0700 Subject: [PATCH] Extend auto-alt-ref parameter range Extend the upper limit from 2 (dual ARFs) to maximum ARF layers. This would later allow --auto-alt-ref to directly control the ARF layer depth later on. Change-Id: I6324fe980122e73dc98f81c8d7de1193a1a16e51 --- vp9/vp9_cx_iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp9/vp9_cx_iface.c b/vp9/vp9_cx_iface.c index 251acf3c5..aacfbe367 100644 --- a/vp9/vp9_cx_iface.c +++ b/vp9/vp9_cx_iface.c @@ -249,7 +249,7 @@ static vpx_codec_err_t validate_config(vpx_codec_alg_priv_t *ctx, RANGE_CHECK(extra_cfg, row_mt, 0, 1); RANGE_CHECK(extra_cfg, motion_vector_unit_test, 0, 2); - RANGE_CHECK(extra_cfg, enable_auto_alt_ref, 0, 2); + RANGE_CHECK(extra_cfg, enable_auto_alt_ref, 0, MAX_ARF_LAYERS); RANGE_CHECK(extra_cfg, cpu_used, -9, 9); RANGE_CHECK_HI(extra_cfg, noise_sensitivity, 6); RANGE_CHECK(extra_cfg, tile_columns, 0, 6); -- 2.40.0