diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-05 21:16:01 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-08 00:59:24 +0100 |
commit | ec1b6e0cd404b2f7f4d202802b1c0a40d52fc9b0 (patch) | |
tree | 6253cb297c2e754868831b18e076b1815fa5c963 /libavcodec/atrac3.c | |
parent | c9f5cea9cca033e662a33fc31ac2eacb74cacfa6 (diff) | |
download | ffmpeg-ec1b6e0cd404b2f7f4d202802b1c0a40d52fc9b0.tar.gz |
avcodec/ccaption_dec: Avoid relocations for strings
The longest string here takes four bytes, so using an array
of pointers is wasteful even when ignoring the cost of relocations;
the lack of relocations also implies that this array
will now be put into .rodata and not into .data.rel.ro.
Static asserts are used to ensure that all strings are always
properly zero-terminated.
Tested-by: Marth64 <marth64@proxyid.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/atrac3.c')
0 files changed, 0 insertions, 0 deletions