Commit b9b42a0a authored by Angie Chiang's avatar Angie Chiang

Fix mismatch when dual_filter daala-ec both are on

BUG=aomedia:132

Change-Id: I5c3214ddbc97576a2e90a070f2bdccc15be50d65
parent 09c0a5bc
......@@ -1091,9 +1091,15 @@ static void write_mb_interp_filter(AV1_COMP *cpi, const MACROBLOCKD *xd,
(mbmi->ref_frame[1] > INTRA_FRAME &&
has_subpel_mv_component(xd->mi[0], xd, dir + 2))) {
const int ctx = av1_get_pred_context_switchable_interp(xd, dir);
#if CONFIG_EC_MULTISYMBOL
aom_write_symbol(w, av1_switchable_interp_ind[mbmi->interp_filter[dir]],
ec_ctx->switchable_interp_cdf[ctx],
SWITCHABLE_FILTERS);
#else
av1_write_token(w, av1_switchable_interp_tree,
ec_ctx->switchable_interp_prob[ctx],
&switchable_interp_encodings[mbmi->interp_filter[dir]]);
#endif
++cpi->interp_filter_selected[0][mbmi->interp_filter[dir]];
}
}
......
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