Commit 378c6187 authored by Urvang Joshi's avatar Urvang Joshi

Fix clang-format warning for bitstream.c

Change-Id: Ibf6985e7b140dc280a74f02084db428a2a85b990
parent 8cf6f156
......@@ -527,25 +527,23 @@ static void write_switchable_interp_filter(AV1_COMP *const cpi,
const AV1_COMMON *const cm = &cpi->common;
const MB_MODE_INFO *const mbmi = &xd->mi[0]->mbmi;
if (cm->interp_filter == SWITCHABLE) {
int ctx;
#if CONFIG_EXT_INTERP
if (is_interp_needed(xd)) {
if (!is_interp_needed(xd)) {
assert(mbmi->interp_filter == EIGHTTAP);
return;
}
#endif
const int ctx = av1_get_pred_context_switchable_interp(xd);
ctx = av1_get_pred_context_switchable_interp(xd);
#if CONFIG_DAALA_EC
aom_write_tree_cdf(w, av1_switchable_interp_ind[mbmi->interp_filter],
cm->fc->switchable_interp_cdf[ctx],
SWITCHABLE_FILTERS);
aom_write_tree_cdf(w, av1_switchable_interp_ind[mbmi->interp_filter],
cm->fc->switchable_interp_cdf[ctx], SWITCHABLE_FILTERS);
#else
av1_write_token(w, av1_switchable_interp_tree,
cm->fc->switchable_interp_prob[ctx],
&switchable_interp_encodings[mbmi->interp_filter]);
#endif
++cpi->interp_filter_selected[0][mbmi->interp_filter];
#if CONFIG_EXT_INTERP
} else {
assert(mbmi->interp_filter == EIGHTTAP);
}
av1_write_token(w, av1_switchable_interp_tree,
cm->fc->switchable_interp_prob[ctx],
&switchable_interp_encodings[mbmi->interp_filter]);
#endif
++cpi->interp_filter_selected[0][mbmi->interp_filter];
}
}
......
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