Mercurial > libavcodec.hg
diff aacenc.c @ 7978:dc1a7a6ec58d libavcodec
Add (additional) const to many global tables.
author | reimar |
---|---|
date | Thu, 02 Oct 2008 15:52:04 +0000 |
parents | bcc058a7b12e |
children | e9d9d946f213 |
line wrap: on
line diff
--- a/aacenc.c Thu Oct 02 15:51:44 2008 +0000 +++ b/aacenc.c Thu Oct 02 15:52:04 2008 +0000 @@ -83,7 +83,7 @@ 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 @@ 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 @@ 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 };