aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc_ps.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-04-10 11:27:51 +0200
committerAnton Khirnov <anton@khirnov.net>2024-05-31 19:26:06 +0200
commit9127819d514a3a82031f7448b40714f2880d7804 (patch)
treefb49e5cfa8d17c34c9a99bf9ef9435c4420c2ac2 /libavcodec/hevc_ps.h
parentd8936678673d05410b3462c41dba190cc5e23705 (diff)
downloadffmpeg-9127819d514a3a82031f7448b40714f2880d7804.tar.gz
lavc/hevc_ps: reduce the size of ShortTermRPS.used
It is currently an array of 32 uint8_t, each storing a single flag. A single uint32_t is sufficient. Reduces sizeof(HEVCSPS) by 1792 bytes.
Diffstat (limited to 'libavcodec/hevc_ps.h')
-rw-r--r--libavcodec/hevc_ps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.h b/libavcodec/hevc_ps.h
index 1d3bdca4c6..ed6372c747 100644
--- a/libavcodec/hevc_ps.h
+++ b/libavcodec/hevc_ps.h
@@ -79,7 +79,7 @@ typedef struct ShortTermRPS {
int num_delta_pocs;
int rps_idx_num_delta_pocs;
int32_t delta_poc[32];
- uint8_t used[32];
+ uint32_t used;
} ShortTermRPS;
typedef struct HEVCWindow {