avformat/caf: Deduplicate codec tags list

Also saves a relocation.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
pull/371/head
Andreas Rheinhardt 4 years ago
parent c50c85911e
commit ef3224c911
  1. 1
      libavformat/caf.c
  2. 1
      libavformat/caf.h
  3. 2
      libavformat/cafdec.c
  4. 2
      libavformat/cafenc.c

@ -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 };

@ -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 */

@ -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,
};

@ -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,
};

Loading…
Cancel
Save