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,8 +1287,9 @@ static void update_stats(const AV1_COMMON *const cm, TileDataEnc *tile_data, ...@@ -1287,8 +1287,9 @@ static void update_stats(const AV1_COMMON *const cm, TileDataEnc *tile_data,
if (has_second_ref(mbmi)) { if (has_second_ref(mbmi)) {
const int comp_index_ctx = get_comp_index_context(cm, xd); const int comp_index_ctx = get_comp_index_context(cm, xd);
++counts->compound_index[comp_index_ctx][mbmi->compound_idx]; ++counts->compound_index[comp_index_ctx][mbmi->compound_idx];
update_cdf(fc->compound_index_cdf[comp_index_ctx], mbmi->compound_idx, if (allow_update_cdf)
2); update_cdf(fc->compound_index_cdf[comp_index_ctx], mbmi->compound_idx,
2);
} }
#endif // CONFIG_JNT_COMP #endif // CONFIG_JNT_COMP
} }
......
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