From: Jingning Han Date: Fri, 30 Sep 2016 18:35:22 +0000 (-0700) Subject: Fix update_delta_q_probs compile warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be44c5f46f8eb3e026986aa8c73ff9ce85acfece;p=libvpx Fix update_delta_q_probs compile warning Change-Id: Ifb93970ed876ed61259b2f8da739171857c97fda --- diff --git a/av1/encoder/bitstream.c b/av1/encoder/bitstream.c index 73fa00328..ba119706c 100644 --- a/av1/encoder/bitstream.c +++ b/av1/encoder/bitstream.c @@ -524,9 +524,14 @@ static void write_delta_qindex(const AV1_COMMON *cm, int delta_qindex, static void update_delta_q_probs(AV1_COMMON *cm, aom_writer *w, FRAME_COUNTS *counts) { int k; - +#if CONFIG_TILE_GROUPS + const int probwt = cm->num_tg; +#else + const int probwt = 1; +#endif for (k = 0; k < DELTA_Q_CONTEXTS; ++k) { - av1_cond_prob_diff_update(w, &cm->fc->delta_q_prob[k], counts->delta_q[k]); + av1_cond_prob_diff_update(w, &cm->fc->delta_q_prob[k], counts->delta_q[k], + probwt); } } #endif