From 99e25ec46960685a5aa4a78e9d422e043932554c Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Thu, 26 Jun 2014 09:41:21 -0700 Subject: [PATCH] Add const mark to const values in non-RD coding mode Change-Id: I65209fd1e06fc06833f6647cb028b414391a7017 --- vp9/encoder/vp9_pickmode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vp9/encoder/vp9_pickmode.c b/vp9/encoder/vp9_pickmode.c index f24fcf858..1186442d9 100644 --- a/vp9/encoder/vp9_pickmode.c +++ b/vp9/encoder/vp9_pickmode.c @@ -567,14 +567,14 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x, if (!x->skip && best_rd > inter_mode_thresh && bsize <= cpi->sf.max_intra_bsize) { int i, j; - int step = 1 << mbmi->tx_size; - int width = num_4x4_blocks_wide_lookup[bsize]; - int height = num_4x4_blocks_high_lookup[bsize]; + const int step = 1 << mbmi->tx_size; + const int width = num_4x4_blocks_wide_lookup[bsize]; + const int height = num_4x4_blocks_high_lookup[bsize]; int rate2 = 0; int64_t dist2 = 0; - int dst_stride = pd->dst.stride; - int src_stride = p->src.stride; + const int dst_stride = pd->dst.stride; + const int src_stride = p->src.stride; int block_idx = 0; for (this_mode = DC_PRED; this_mode <= DC_PRED; ++this_mode) { -- 2.40.0