diff vp3.c @ 10133:45cb3db81201 libavcodec

Make vp3 arrays static const where possible.
author reimar
date Sat, 05 Sep 2009 17:28:20 +0000
parents 5da84f0d0a55
children 420728852dc0
line wrap: on
line diff
--- a/vp3.c	Sat Sep 05 16:41:20 2009 +0000
+++ b/vp3.c	Sat Sep 05 17:28:20 2009 +0000
@@ -258,25 +258,25 @@
     int current_macroblock;
     int c_fragment;
 
-    signed char travel_width[16] = {
+    static const signed char travel_width[16] = {
          1,  1,  0, -1,
          0,  0,  1,  0,
          1,  0,  1,  0,
          0, -1,  0,  1
     };
 
-    signed char travel_height[16] = {
+    static const signed char travel_height[16] = {
          0,  0,  1,  0,
          1,  1,  0, -1,
          0,  1,  0, -1,
         -1,  0, -1,  0
     };
 
-    signed char travel_width_mb[4] = {
+    static const signed char travel_width_mb[4] = {
          1,  0,  1,  0
     };
 
-    signed char travel_height_mb[4] = {
+    static const signed char travel_height_mb[4] = {
          0,  1,  0, -1
     };
 
@@ -1200,7 +1200,7 @@
      *   2: up-right multiplier
      *   3: left multiplier
      */
-    int predictor_transform[16][4] = {
+    static const int predictor_transform[16][4] = {
         {  0,  0,  0,  0},
         {  0,  0,  0,128},        // PL
         {  0,  0,128,  0},        // PUR