Commit 2098abc1 authored by Cheng Chen's avatar Cheng Chen

Fix allow_update_cdf for jnt_comp

Update cdf only when it is allowed.

Change-Id: I95ab08ff4220abdd277a7cd110b69c82364dddcb
parent 9c159e55
......@@ -1287,6 +1287,7 @@ static void update_stats(const AV1_COMMON *const cm, TileDataEnc *tile_data,
if (has_second_ref(mbmi)) {
const int comp_index_ctx = get_comp_index_context(cm, xd);
++counts->compound_index[comp_index_ctx][mbmi->compound_idx];
if (allow_update_cdf)
update_cdf(fc->compound_index_cdf[comp_index_ctx], mbmi->compound_idx,
2);
}
......
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