diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-27 17:15:09 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-31 14:18:33 +0200 |
commit | c30928566623110354e4cb3a10f28183cee01684 (patch) | |
tree | 258e9fa55b221a344c18c189553fca795a856890 /libavcodec | |
parent | 02ecf8d7f3fe6ad6bc493a37bfff65bfe9150113 (diff) | |
download | ffmpeg-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.c | 5 |
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[] = { |