aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp3.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-09-05 17:28:20 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-09-05 17:28:20 +0000
commitbb9910877564055f01a10d6fe55637bb456c6554 (patch)
treeec79c9e84f4ca67c09f778c04559e79692e7b691 /libavcodec/vp3.c
parent8444059fb38301645bfe3f89e39424445899529f (diff)
downloadffmpeg-bb9910877564055f01a10d6fe55637bb456c6554.tar.gz
Make vp3 arrays static const where possible.
Originally committed as revision 19771 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r--libavcodec/vp3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index d47bc1a411..5e541d0aa6 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -258,25 +258,25 @@ static int init_block_mapping(Vp3DecodeContext *s)
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 @@ static void reverse_dc_prediction(Vp3DecodeContext *s,
* 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