[FFmpeg-cvslog] r19771 - trunk/libavcodec/vp3.c
reimar
subversion
Sat Sep 5 19:28:20 CEST 2009
Author: reimar
Date: Sat Sep 5 19:28:20 2009
New Revision: 19771
Log:
Make vp3 arrays static const where possible.
Modified:
trunk/libavcodec/vp3.c
Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c Sat Sep 5 18:41:20 2009 (r19770)
+++ trunk/libavcodec/vp3.c Sat Sep 5 19:28:20 2009 (r19771)
@@ -258,25 +258,25 @@ static int init_block_mapping(Vp3DecodeC
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(Vp3Dec
* 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
More information about the ffmpeg-cvslog
mailing list