aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-27 17:15:09 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-31 14:18:33 +0200
commitc30928566623110354e4cb3a10f28183cee01684 (patch)
tree258e9fa55b221a344c18c189553fca795a856890 /libavcodec
parent02ecf8d7f3fe6ad6bc493a37bfff65bfe9150113 (diff)
downloadffmpeg-c30928566623110354e4cb3a10f28183cee01684.tar.gz
avcodec/vc2enc: Avoid relocations for short strings
These strings are so short that they can be put directly into the containing structure, avoiding the pointer and putting it into .rodata. Also use chars for interlaced and level while at it, as these are so small. Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vc2enc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index 3285218724..cad7390055 100644
--- a/libavcodec/vc2enc.c
+++ b/libavcodec/vc2enc.c
@@ -41,8 +41,9 @@
typedef struct VC2BaseVideoFormat {
enum AVPixelFormat pix_fmt;
AVRational time_base;
- int width, height, interlaced, level;
- const char *name;
+ int width, height;
+ uint8_t interlaced, level;
+ char name[13];
} VC2BaseVideoFormat;
static const VC2BaseVideoFormat base_video_fmts[] = {