Avoid using gen_txb_cache when eob_first is on Change-Id: Ib5e79caa67ba6a061e8dc22491c86cde702be137
diff --git a/av1/encoder/encodetxb.c b/av1/encoder/encodetxb.c index 01a8c15..221ef6f 100644 --- a/av1/encoder/encodetxb.c +++ b/av1/encoder/encodetxb.c
@@ -2400,11 +2400,15 @@ rdmult, &cm->coeff_ctx_table }; +#if CONFIG_EOB_FIRST + const int update = optimize_txb(&txb_info, &txb_costs, NULL, 0, fast_mode); +#else TxbCache txb_cache; gen_txb_cache(&txb_cache, &txb_info); const int update = optimize_txb(&txb_info, &txb_costs, &txb_cache, 0, fast_mode); +#endif if (update) p->eobs[block] = txb_info.eob; return txb_info.eob; }