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/atrac9dec.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/atrac9dec.c')
-rw-r--r-- | libavcodec/atrac9dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac9dec.c b/libavcodec/atrac9dec.c index 805d46f3b8..894c70c7fc 100644 --- a/libavcodec/atrac9dec.c +++ b/libavcodec/atrac9dec.c @@ -241,7 +241,7 @@ static inline int read_scalefactors(ATRAC9Context *s, ATRAC9BlockData *b, ATRAC9ChannelData *c, GetBitContext *gb, int channel_idx, int first_in_pkt) { - static const int mode_map[2][4] = { { 0, 1, 2, 3 }, { 0, 2, 3, 4 } }; + static const uint8_t mode_map[2][4] = { { 0, 1, 2, 3 }, { 0, 2, 3, 4 } }; const int mode = mode_map[channel_idx][get_bits(gb, 2)]; memset(c->scalefactors, 0, sizeof(c->scalefactors)); |