Move FrameContext out of plane loop
Change-Id: Ideaeb52dbaf87e5a68da90cb94b0517760cb9d5c
diff --git a/av1/common/onyxc_int.h b/av1/common/onyxc_int.h
index 38750c4..f3dc170 100644
--- a/av1/common/onyxc_int.h
+++ b/av1/common/onyxc_int.h
@@ -525,8 +525,7 @@
CFL_CTX *cfl,
#endif
tran_low_t *dqcoeff) {
- int i;
- for (i = 0; i < MAX_MB_PLANE; ++i) {
+ for (int i = 0; i < MAX_MB_PLANE; ++i) {
xd->plane[i].dqcoeff = dqcoeff;
#if CONFIG_PVQ
xd->plane[i].pvq_ref_coeff = pvq_ref_coeff;
@@ -558,8 +557,8 @@
sizeof(cm->uv_dequant_nuq));
#endif
}
- xd->fc = cm->fc;
}
+ xd->fc = cm->fc;
xd->above_seg_context = cm->above_seg_context;
#if CONFIG_VAR_TX
xd->above_txfm_context = cm->above_txfm_context;