[FFmpeg-cvslog] r15515 - in trunk: libavcodec/aacdectab.h libavcodec/aacenc.c libavcodec/aactab.c libavcodec/aactab.h libavcodec/ac3dec_data.c libavcodec/ac3dec_data.h libavcodec/liba52.c libavcodec/libfaad.c libavcodec/msmpeg4data.c libavcodec/msmpeg4data.h libavcodec/ratecontrol.c libavformat/isom.c libavformat/rtsp.c
reimar
subversion
Thu Oct 2 17:52:05 CEST 2008
Author: reimar
Date: Thu Oct 2 17:52:04 2008
New Revision: 15515
Log:
Add (additional) const to many global tables.
Modified:
trunk/libavcodec/aacdectab.h
trunk/libavcodec/aacenc.c
trunk/libavcodec/aactab.c
trunk/libavcodec/aactab.h
trunk/libavcodec/ac3dec_data.c
trunk/libavcodec/ac3dec_data.h
trunk/libavcodec/liba52.c
trunk/libavcodec/libfaad.c
trunk/libavcodec/msmpeg4data.c
trunk/libavcodec/msmpeg4data.h
trunk/libavcodec/ratecontrol.c
trunk/libavformat/isom.c
trunk/libavformat/rtsp.c
Modified: trunk/libavcodec/aacdectab.h
==============================================================================
--- trunk/libavcodec/aacdectab.h (original)
+++ trunk/libavcodec/aacdectab.h Thu Oct 2 17:52:04 2008
@@ -198,7 +198,7 @@ static const float tns_tmp2_map_0_4[16]
0.67369562, 0.52643216, 0.36124167, 0.18374951,
};
-static const float *tns_tmp2_map[4] = {
+static const float * const tns_tmp2_map[4] = {
tns_tmp2_map_0_3,
tns_tmp2_map_0_4,
tns_tmp2_map_1_3,
Modified: trunk/libavcodec/aacenc.c
==============================================================================
--- trunk/libavcodec/aacenc.c (original)
+++ trunk/libavcodec/aacenc.c Thu Oct 2 17:52:04 2008
@@ -83,7 +83,7 @@ static const uint8_t swb_size_1024_8[] =
32, 36, 36, 40, 44, 48, 52, 56, 60, 64, 80
};
-static const uint8_t *swb_size_1024[] = {
+static const uint8_t * const swb_size_1024[] = {
swb_size_1024_96, swb_size_1024_96, swb_size_1024_64,
swb_size_1024_48, swb_size_1024_48, swb_size_1024_32,
swb_size_1024_24, swb_size_1024_24, swb_size_1024_16,
@@ -110,7 +110,7 @@ static const uint8_t swb_size_128_8[] =
4, 4, 4, 4, 4, 4, 4, 8, 8, 8, 8, 12, 16, 20, 20
};
-static const uint8_t *swb_size_128[] = {
+static const uint8_t * const swb_size_128[] = {
/* the last entry on the following row is swb_size_128_64 but is a
duplicate of swb_size_128_96 */
swb_size_128_96, swb_size_128_96, swb_size_128_96,
@@ -132,7 +132,7 @@ static const uint8_t run_value_bits_shor
3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9
};
-static const uint8_t* run_value_bits[2] = {
+static const uint8_t* const run_value_bits[2] = {
run_value_bits_long, run_value_bits_short
};
Modified: trunk/libavcodec/aactab.c
==============================================================================
--- trunk/libavcodec/aactab.c (original)
+++ trunk/libavcodec/aactab.c Thu Oct 2 17:52:04 2008
@@ -387,12 +387,12 @@ static const uint8_t bits11[289] = {
5,
};
-const uint16_t *ff_aac_spectral_codes[11] = {
+const uint16_t * const ff_aac_spectral_codes[11] = {
codes1, codes2, codes3, codes4, codes5, codes6, codes7, codes8,
codes9, codes10, codes11,
};
-const uint8_t *ff_aac_spectral_bits[11] = {
+const uint8_t * const ff_aac_spectral_bits[11] = {
bits1, bits2, bits3, bits4, bits5, bits6, bits7, bits8,
bits9, bits10, bits11,
};
@@ -888,7 +888,7 @@ static const float codebook_vector10[578
64.0f, 64.0f,
};
-const float *ff_aac_codebook_vectors[] = {
+const float * const ff_aac_codebook_vectors[] = {
codebook_vector0, codebook_vector0, codebook_vector2,
codebook_vector2, codebook_vector4, codebook_vector4,
codebook_vector6, codebook_vector6, codebook_vector8,
Modified: trunk/libavcodec/aactab.h
==============================================================================
--- trunk/libavcodec/aactab.h (original)
+++ trunk/libavcodec/aactab.h Thu Oct 2 17:52:04 2008
@@ -57,8 +57,8 @@ extern const uint8_t ff_aac_num_swb_128
extern const uint32_t ff_aac_scalefactor_code[121];
extern const uint8_t ff_aac_scalefactor_bits[121];
-extern const uint16_t *ff_aac_spectral_codes[11];
-extern const uint8_t *ff_aac_spectral_bits [11];
+extern const uint16_t * const ff_aac_spectral_codes[11];
+extern const uint8_t * const ff_aac_spectral_bits [11];
extern const uint16_t ff_aac_spectral_sizes[11];
extern const float *ff_aac_codebook_vectors[];
Modified: trunk/libavcodec/ac3dec_data.c
==============================================================================
--- trunk/libavcodec/ac3dec_data.c (original)
+++ trunk/libavcodec/ac3dec_data.c Thu Oct 2 17:52:04 2008
@@ -1072,7 +1072,7 @@ static const int16_t vq_hebap7[512][6] =
{ 3231, -3284, 27336, 4174, -1683, 497},
};
-const int16_t (*ff_eac3_mantissa_vq[8])[6] = {
+const int16_t (* const ff_eac3_mantissa_vq[8])[6] = {
NULL,
vq_hebap1,
vq_hebap2,
Modified: trunk/libavcodec/ac3dec_data.h
==============================================================================
--- trunk/libavcodec/ac3dec_data.h (original)
+++ trunk/libavcodec/ac3dec_data.h Thu Oct 2 17:52:04 2008
@@ -31,7 +31,7 @@ extern const int16_t ff_eac3_gaq_remap_1
extern const int16_t ff_eac3_gaq_remap_2_4_a[9][2];
extern const int8_t ff_eac3_gaq_remap_2_4_b[9][2];
-extern const int16_t (*ff_eac3_mantissa_vq[8])[6];
+extern const int16_t (* const ff_eac3_mantissa_vq[8])[6];
extern const uint8_t ff_eac3_frm_expstr[32][6];
extern const uint8_t ff_eac3_default_cpl_band_struct[18];
Modified: trunk/libavcodec/liba52.c
==============================================================================
--- trunk/libavcodec/liba52.c (original)
+++ trunk/libavcodec/liba52.c Thu Oct 2 17:52:04 2008
@@ -29,7 +29,7 @@
#ifdef CONFIG_LIBA52BIN
#include <dlfcn.h>
-static const char* liba52name = "liba52.so.0";
+static const char* const liba52name = "liba52.so.0";
#endif
/**
Modified: trunk/libavcodec/libfaad.c
==============================================================================
--- trunk/libavcodec/libfaad.c (original)
+++ trunk/libavcodec/libfaad.c Thu Oct 2 17:52:04 2008
@@ -42,7 +42,7 @@
#ifdef CONFIG_LIBFAADBIN
#include <dlfcn.h>
-static const char* libfaadname = "libfaad.so";
+static const char* const libfaadname = "libfaad.so";
#else
#define dlopen(a)
#define dlclose(a)
Modified: trunk/libavcodec/msmpeg4data.c
==============================================================================
--- trunk/libavcodec/msmpeg4data.c (original)
+++ trunk/libavcodec/msmpeg4data.c Thu Oct 2 17:52:04 2008
@@ -1979,7 +1979,7 @@ static const uint32_t table_mb_non_intra
{0x000011, 5}, {0x0001AC, 9}, {0x0000F3, 8}, {0x000439, 11},
};
-const uint32_t (*wmv2_inter_table[WMV2_INTER_CBP_TABLE_COUNT])[2]={
+const uint32_t (* const wmv2_inter_table[WMV2_INTER_CBP_TABLE_COUNT])[2]={
table_mb_non_intra2,
table_mb_non_intra3,
table_mb_non_intra4,
Modified: trunk/libavcodec/msmpeg4data.h
==============================================================================
--- trunk/libavcodec/msmpeg4data.h (original)
+++ trunk/libavcodec/msmpeg4data.h Thu Oct 2 17:52:04 2008
@@ -91,7 +91,7 @@ extern const uint32_t ff_table0_dc_chrom
extern const uint32_t ff_table1_dc_chroma[120][2];
#define WMV2_INTER_CBP_TABLE_COUNT 4
-extern const uint32_t (*wmv2_inter_table[WMV2_INTER_CBP_TABLE_COUNT])[2];
+extern const uint32_t (* const wmv2_inter_table[WMV2_INTER_CBP_TABLE_COUNT])[2];
extern const uint8_t wmv2_scantableA[64];
extern const uint8_t wmv2_scantableB[64];
Modified: trunk/libavcodec/ratecontrol.c
==============================================================================
--- trunk/libavcodec/ratecontrol.c (original)
+++ trunk/libavcodec/ratecontrol.c Thu Oct 2 17:52:04 2008
@@ -94,7 +94,7 @@ int ff_rate_control_init(MpegEncContext
"avgTex",
NULL
};
- static double (*func1[])(void *, double)={
+ static double (* const func1[])(void *, double)={
(void *)bits2qp,
(void *)qp2bits,
NULL
Modified: trunk/libavformat/isom.c
==============================================================================
--- trunk/libavformat/isom.c (original)
+++ trunk/libavformat/isom.c Thu Oct 2 17:52:04 2008
@@ -221,7 +221,7 @@ const AVCodecTag ff_codec_movsubtitle_ta
/* cf. QTFileFormat.pdf p253, qtff.pdf p205 */
/* http://developer.apple.com/documentation/mac/Text/Text-368.html */
/* deprecated by putting the code as 3*5bit ascii */
-static const char *mov_mdhd_language_map[] = {
+static const char * const mov_mdhd_language_map[] = {
/* 0-9 */
"eng", "fra", "ger", "ita", "dut", "sve", "spa", "dan", "por", "nor",
"heb", "jpn", "ara", "fin", "gre", "ice", "mlt", "tur", "hr "/*scr*/, "chi"/*ace?*/,
Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c (original)
+++ trunk/libavformat/rtsp.c Thu Oct 2 17:52:04 2008
@@ -293,7 +293,7 @@ typedef struct attrname_map
/* All known fmtp parmeters and the corresping RTPAttrTypeEnum */
#define ATTR_NAME_TYPE_INT 0
#define ATTR_NAME_TYPE_STR 1
-static attrname_map_t attr_names[]=
+static const attrname_map_t attr_names[]=
{
{"SizeLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, sizelength)},
{"IndexLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, indexlength)},
More information about the ffmpeg-cvslog
mailing list