Update ctc fixed qp offset model

Slightly improve the compression efficiency by 0.8% for A5 set
in open-GOP with 64 frames and sub-GOP 32 frames.

BUG=aomedia:3079

Change-Id: Ie3cb505e86c14c6b019022c8f52a7e094855148c
diff --git a/av1/encoder/encoder_utils.c b/av1/encoder/encoder_utils.c
index 6d1056f..b310726 100644
--- a/av1/encoder/encoder_utils.c
+++ b/av1/encoder/encoder_utils.c
@@ -555,8 +555,11 @@
 
   if (cpi->oxcf.q_cfg.use_fixed_qp_offsets && cpi->oxcf.rc_cfg.mode == AOM_Q) {
     if (is_frame_tpl_eligible(gf_group, cpi->gf_frame_index)) {
+      const double qratio_grad =
+          cpi->ppi->p_rc.baseline_gf_interval > 20 ? 0.2 : 0.3;
       const double qstep_ratio =
-          0.2 + (1.0 - (double)cpi->rc.active_worst_quality / MAXQ) * 0.3;
+          0.2 +
+          (1.0 - (double)cpi->rc.active_worst_quality / MAXQ) * qratio_grad;
       *q = av1_get_q_index_from_qstep_ratio(
           cpi->rc.active_worst_quality, qstep_ratio, cm->seq_params->bit_depth);
       *top_index = *bottom_index = *q;