avformat/caf: Deduplicate codec tags list

Also saves a relocation.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2021-02-18 01:31:18 +01:00
parent c50c85911e
commit ef3224c911
4 changed files with 4 additions and 2 deletions

View File

@ -78,3 +78,4 @@ const AVCodecTag ff_codec_caf_tags[] = {
{ AV_CODEC_ID_NONE, 0 },
};
const AVCodecTag *const ff_caf_codec_tags_list[] = { ff_codec_caf_tags, NULL };

View File

@ -30,5 +30,6 @@
#include "internal.h"
extern const AVCodecTag ff_codec_caf_tags[];
extern const AVCodecTag *const ff_caf_codec_tags_list[];
#endif /* AVFORMAT_CAF_H */

View File

@ -460,5 +460,5 @@ AVInputFormat ff_caf_demuxer = {
.read_header = read_header,
.read_packet = read_packet,
.read_seek = read_seek,
.codec_tag = (const AVCodecTag* const []){ ff_codec_caf_tags, 0 },
.codec_tag = ff_caf_codec_tags_list,
};

View File

@ -274,5 +274,5 @@ AVOutputFormat ff_caf_muxer = {
.write_header = caf_write_header,
.write_packet = caf_write_packet,
.write_trailer = caf_write_trailer,
.codec_tag = (const AVCodecTag* const []){ff_codec_caf_tags, 0},
.codec_tag = ff_caf_codec_tags_list,
};