From 64ed2ce7f80dd83a89d49fcfb804a6e5ed97f62e Mon Sep 17 00:00:00 2001 From: Luc Trudeau Date: Fri, 12 May 2017 12:01:24 -0400 Subject: [PATCH] [CFL] Fix undeclared 'cm' when EC_ADAPT disabled Change-Id: I9a9d7960b46dd80012fc8efdefb640939e1f1e48 --- av1/encoder/rdopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c index 7b7b88252..6422842d9 100644 --- a/av1/encoder/rdopt.c +++ b/av1/encoder/rdopt.c @@ -2367,7 +2367,7 @@ static int64_t intra_model_yrd(const AV1_COMP *const cpi, MACROBLOCK *const x, #if CONFIG_EC_ADAPT FRAME_CONTEXT *const ec_ctx = xd->tile_ctx; #else - FRAME_CONTEXT *const ec_ctx = cm->fc; + FRAME_CONTEXT *const ec_ctx = cpi->common.fc; #endif // CONFIG_EC_ADAPT av1_predict_intra_block_encoder_facade(x, ec_ctx, 0, block, col, row,