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/vp9.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/vp9.c')
-rw-r--r-- | libavcodec/vp9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index acf3ffc9e7..f16462b1e9 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -353,7 +353,7 @@ static av_always_inline int inv_recenter_nonneg(int v, int m) // differential forward probability updates static int update_prob(VP56RangeCoder *c, int p) { - static const int inv_map_table[255] = { + static const uint8_t inv_map_table[255] = { 7, 20, 33, 46, 59, 72, 85, 98, 111, 124, 137, 150, 163, 176, 189, 202, 215, 228, 241, 254, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, |