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/atrac3plusdsp.c | |
parent | 91f5950f833fd48f12de769374129334f8c6b237 (diff) |
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/atrac3plusdsp.c')
-rw-r--r-- | libavcodec/atrac3plusdsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/atrac3plusdsp.c b/libavcodec/atrac3plusdsp.c index 96aa402c2b..ca3154e133 100644 --- a/libavcodec/atrac3plusdsp.c +++ b/libavcodec/atrac3plusdsp.c @@ -248,7 +248,7 @@ void ff_atrac3p_generate_tones(Atrac3pChanUnitCtx *ch_unit, AVFloatDSPContext *f out[i] += wavreg1[i] + wavreg2[i]; } -static const int subband_to_powgrp[ATRAC3P_SUBBANDS] = { +static const uint8_t subband_to_powgrp[ATRAC3P_SUBBANDS] = { 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4 }; @@ -411,7 +411,7 @@ static const float pwc_levs[16] = { }; /** Map subband number to quant unit number. */ -static const int subband_to_qu[17] = { +static const uint8_t subband_to_qu[17] = { 0, 8, 12, 16, 18, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 }; |