]> granicus.if.org Git - libvpx/commitdiff
Changed a constant array to static const type
authorYaowu Xu <yaowu@google.com>
Sat, 22 Feb 2014 00:58:36 +0000 (16:58 -0800)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Sat, 22 Feb 2014 06:44:13 +0000 (22:44 -0800)
Change-Id: I5b3918441f63ceb7889dcf546e9a2d781be4a3cb

vp9/encoder/vp9_pickmode.c

index a4e11d6d00a46021d458e56d78a8397d2b3e9ad2..383d9275159d957fc18ebb5c9177b819047371c7 100644 (file)
@@ -192,7 +192,7 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
                                     VP9_ALT_FLAG };
   int64_t best_rd = INT64_MAX;
   int64_t this_rd;
-  int64_t cost[4]= { 0, 50, 75, 100 };
+  static const int cost[4]= { 0, 50, 75, 100 };
 
   const int64_t inter_mode_thresh = 300;
   const int64_t intra_mode_cost = 50;