Store pre_fc in AV1_COMMON rather than computing it on the spot.
Prep work for changing how frame contexts are signaled.
Change-Id: I0db8ec631fc2d616d16fabaf72eac5663ffe3630
diff --git a/av1/common/scan.c b/av1/common/scan.c
index 9ad6c0b..293acf6 100644
--- a/av1/common/scan.c
+++ b/av1/common/scan.c
@@ -6606,7 +6606,7 @@
static void update_scan_prob(AV1_COMMON *cm, TX_SIZE tx_size, TX_TYPE tx_type,
int rate_16) {
- FRAME_CONTEXT *pre_fc = &cm->frame_contexts[cm->frame_context_idx];
+ FRAME_CONTEXT *pre_fc = cm->pre_fc;
uint32_t *prev_non_zero_prob = get_non_zero_prob(pre_fc, tx_size, tx_type);
uint32_t *non_zero_prob = get_non_zero_prob(cm->fc, tx_size, tx_type);
uint32_t *non_zero_count = get_non_zero_counts(&cm->counts, tx_size, tx_type);