Clean up the code for skip probs
Change-Id: Ia0fd1590d3a5aa1691e6ca0a7ab7ddaab3c7297b
diff --git a/av1/encoder/bitstream.c b/av1/encoder/bitstream.c
index 303c03c..f21bf51 100644
--- a/av1/encoder/bitstream.c
+++ b/av1/encoder/bitstream.c
@@ -388,12 +388,12 @@
return 1;
} else {
const int skip = mi->mbmi.skip;
+ const int ctx = av1_get_skip_context(xd);
#if CONFIG_NEW_MULTISYMBOL
FRAME_CONTEXT *ec_ctx = xd->tile_ctx;
- const int ctx = av1_get_skip_context(xd);
aom_write_symbol(w, skip, ec_ctx->skip_cdfs[ctx], 2);
#else
- aom_write(w, skip, av1_get_skip_prob(cm, xd));
+ aom_write(w, skip, cm->fc->skip_probs[ctx]);
#endif
return skip;
}