mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avformat/caf: Deduplicate codec tags list
Also saves a relocation. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
c50c85911e
commit
ef3224c911
@ -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…
Reference in New Issue
Block a user