diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-06 17:13:01 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-10 21:16:54 +0200 |
commit | 90f444ef743661cc2d8a7689ec112463889dc832 (patch) | |
tree | e39e807e865de92bb95192f140b75c5bb13c6af0 /libavformat | |
parent | c95cdf871c30a72965c65a4b3631e8a6d9b08a92 (diff) | |
download | ffmpeg-90f444ef743661cc2d8a7689ec112463889dc832.tar.gz |
avformat/dashenc: Avoid relocations for short strings
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/dashenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index e98d54a61d..96f4a5fbdf 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -207,14 +207,14 @@ typedef struct DASHContext { static const struct codec_string { enum AVCodecID id; - const char *str; + const char str[8]; } codecs[] = { { AV_CODEC_ID_VP8, "vp8" }, { AV_CODEC_ID_VP9, "vp9" }, { AV_CODEC_ID_VORBIS, "vorbis" }, { AV_CODEC_ID_OPUS, "opus" }, { AV_CODEC_ID_FLAC, "flac" }, - { AV_CODEC_ID_NONE, NULL } + { AV_CODEC_ID_NONE } }; static int dashenc_io_open(AVFormatContext *s, AVIOContext **pb, char *filename, |