aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dvenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-09 16:12:26 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-14 20:37:03 +0100
commit282812d6dc90ff0a2c85f90507a0a78c4a112cf9 (patch)
tree1ea368e47a2b8537c0b90ca747229425cfdb6923 /libavformat/dvenc.c
parentad6347fc3797a8deca29630fa26ac343c7539463 (diff)
downloadffmpeg-282812d6dc90ff0a2c85f90507a0a78c4a112cf9.tar.gz
avcodec/tiff_data: Avoid relocations for TiffGeoTagNameType
Instead store all the strings in one continugous string (with internal \0) and use offsets to access the actual substrings. This replaces the pointers to the strings and therefore avoids relocations (and on x64, it actually shrinks TiffGeoTagNameType by reusing padding to store the offset field). This saves 720B of .data.rel.ro and 1080B of .rela.dyn (containing the relocation records) here while increasing .rodata by 384B. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/dvenc.c')
0 files changed, 0 insertions, 0 deletions