Commit c7bf4fba authored by Tom Finegan's avatar Tom Finegan

Validate aom_tune_metric value.

Change-Id: I6d0f42ddec857921f5beb52b25925747e6412956
parent e7745025
......@@ -381,6 +381,13 @@ static aom_codec_err_t validate_config(aom_codec_alg_priv_t *ctx,
#if CONFIG_ANS && ANS_MAX_SYMBOLS
RANGE_CHECK(extra_cfg, ans_window_size_log2, 8, 23);
#endif
#if CONFIG_DIST_8X8
RANGE_CHECK(extra_cfg, tuning, AOM_TUNE_PSNR, AOM_TUNE_DAALA_DIST);
#else
RANGE_CHECK(extra_cfg, tuning, AOM_TUNE_PSNR, AOM_TUNE_SSIM);
#endif
return AOM_CODEC_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment