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>
This commit is contained in:
parent
91f5950f83
commit
a1a8815220
10 changed files with 23 additions and 23 deletions
|
@ -650,7 +650,7 @@ static int FUNC(sei_pic_timing)(CodedBitstreamContext *ctx, RWContext *rw,
|
|||
}
|
||||
|
||||
if (sps->vui.pic_struct_present_flag) {
|
||||
static const int num_clock_ts[9] = {
|
||||
static const uint8_t num_clock_ts[9] = {
|
||||
1, 1, 1, 2, 2, 3, 3, 2, 3
|
||||
};
|
||||
int i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue