ref: 76ed2d5d697e77952d4fb1ca9c3f621eb941d29a
parent: b78d3b21e336e9b08f0208f9a998aa804759a7f9
author: Jerome Jiang <jianj@google.com>
date: Tue Jan 21 09:46:47 EST 2020
vp9: fix control for delta qp for uv It could be overwritten by other controls. Change-Id: I86b430842d6819d3858bc65e728f7cb2bd471284
--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -581,8 +581,6 @@
oxcf->min_gf_interval = extra_cfg->min_gf_interval;
oxcf->max_gf_interval = extra_cfg->max_gf_interval;
- oxcf->delta_q_uv = 0;
-
oxcf->tuning = extra_cfg->tuning;
oxcf->content = extra_cfg->content;
@@ -1663,6 +1661,7 @@
VP9_COMP *const cpi = ctx->cpi;
data = VPXMIN(VPXMAX(data, -20), 20);
cpi->oxcf.delta_q_uv = data;
+ ctx->oxcf.delta_q_uv = data;
return VPX_CODEC_OK;
}