summaryrefslogtreecommitdiff
path: root/libavformat/au.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-18 01:16:26 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-23 10:14:26 +0100
commit6cb6ee754be7d4abed06b98a535e3012ddab4f8a (patch)
treeaf535b99267f73fac8f0cdbae6a92c0c78cdc716 /libavformat/au.c
parent20ff7b1f1649e0661d6e69afc138452be68995e2 (diff)
avformat/au: Deduplicate codec_tag lists
Also saves a relocation. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/au.c')
-rw-r--r--libavformat/au.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/au.c b/libavformat/au.c
index 4f2b81119f..c2c1b7a3a3 100644
--- a/libavformat/au.c
+++ b/libavformat/au.c
@@ -53,6 +53,8 @@ static const AVCodecTag codec_au_tags[] = {
{ AV_CODEC_ID_NONE, 0 },
};
+static const AVCodecTag *const au_codec_tags[] = { codec_au_tags, NULL };
+
#if CONFIG_AU_DEMUXER
static int au_probe(const AVProbeData *p)
@@ -231,7 +233,7 @@ AVInputFormat ff_au_demuxer = {
.read_header = au_read_header,
.read_packet = ff_pcm_read_packet,
.read_seek = ff_pcm_read_seek,
- .codec_tag = (const AVCodecTag* const []) { codec_au_tags, 0 },
+ .codec_tag = au_codec_tags,
};
#endif /* CONFIG_AU_DEMUXER */
@@ -337,7 +339,7 @@ AVOutputFormat ff_au_muxer = {
.write_header = au_write_header,
.write_packet = ff_raw_write_packet,
.write_trailer = au_write_trailer,
- .codec_tag = (const AVCodecTag* const []) { codec_au_tags, 0 },
+ .codec_tag = au_codec_tags,
.flags = AVFMT_NOTIMESTAMPS,
};