Mercurial > libavcodec.hg
changeset 10141:69d79f51b8ce libavcodec
ff_swb_offset_* tables should be const.
author | reimar |
---|---|
date | Sun, 06 Sep 2009 08:48:45 +0000 |
parents | 420728852dc0 |
children | 9855215d1b2f |
files | aactab.c aactab.h |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/aactab.c Sun Sep 06 08:27:23 2009 +0000 +++ b/aactab.c Sun Sep 06 08:48:45 2009 +0000 @@ -1003,7 +1003,7 @@ 36, 44, 52, 60, 72, 88, 108, 128 }; -const uint16_t *ff_swb_offset_1024[] = { +const uint16_t * const ff_swb_offset_1024[] = { swb_offset_1024_96, swb_offset_1024_96, swb_offset_1024_64, swb_offset_1024_48, swb_offset_1024_48, swb_offset_1024_32, swb_offset_1024_24, swb_offset_1024_24, swb_offset_1024_16, @@ -1011,7 +1011,7 @@ swb_offset_1024_8 }; -const uint16_t *ff_swb_offset_128[] = { +const uint16_t * const ff_swb_offset_128[] = { /* The last entry on the following row is swb_offset_128_64 but is a duplicate of swb_offset_128_96. */ swb_offset_128_96, swb_offset_128_96, swb_offset_128_96,
--- a/aactab.h Sun Sep 06 08:27:23 2009 +0000 +++ b/aactab.h Sun Sep 06 08:48:45 2009 +0000 @@ -65,8 +65,8 @@ extern const float *ff_aac_codebook_vectors[]; -extern const uint16_t *ff_swb_offset_1024[13]; -extern const uint16_t *ff_swb_offset_128 [13]; +extern const uint16_t * const ff_swb_offset_1024[13]; +extern const uint16_t * const ff_swb_offset_128 [13]; extern const uint8_t ff_tns_max_bands_1024[13]; extern const uint8_t ff_tns_max_bands_128 [13];