diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-06-19 04:39:47 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-06-20 14:47:46 -0300 |
commit | a1a8815220fcb844b645ce32cb1593e744798419 (patch) | |
tree | ac23567ed7f1e35b5b23b835f79da3e7f58e69c5 /libavcodec/aic.c | |
parent | 91f5950f833fd48f12de769374129334f8c6b237 (diff) | |
download | ffmpeg-a1a8815220fcb844b645ce32cb1593e744798419.tar.gz |
libavcodec: Reduce the size of some arrays
This commit uses smaller types for some static const arrays to reduce
their size in case the entries can be represented in the smaller type.
The biggest savings came from inv_map_table in vp9.c.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/aic.c')
-rw-r--r-- | libavcodec/aic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aic.c b/libavcodec/aic.c index dc28c83661..956d71fcff 100644 --- a/libavcodec/aic.c +++ b/libavcodec/aic.c @@ -42,9 +42,9 @@ enum AICBands { NUM_BANDS }; -static const int aic_num_band_coeffs[NUM_BANDS] = { 64, 32, 192, 96 }; +static const uint8_t aic_num_band_coeffs[NUM_BANDS] = { 64, 32, 192, 96 }; -static const int aic_band_off[NUM_BANDS] = { 0, 64, 96, 288 }; +static const uint16_t aic_band_off[NUM_BANDS] = { 0, 64, 96, 288 }; static const uint8_t aic_quant_matrix[64] = { 8, 16, 19, 22, 22, 26, 26, 27, |