[FFmpeg-devel] [PATCH v2 09/22] avformat/dashenc: Avoid relocations for short strings
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Sep 7 04:05:25 EEST 2023
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavformat/dashenc.c | 4 ++--
1 file 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,
--
2.34.1
More information about the ffmpeg-devel
mailing list