mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/wav: Deduplicate codec tags lists
Also saves relocations. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
09e6d3a026
commit
1df1083b6c
@ -596,6 +596,10 @@ const AVCodecTag *const ff_riff_codec_tags_list[] = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CONFIG_WAV_DEMUXER || CONFIG_WAV_MUXER || CONFIG_W64_DEMUXER || CONFIG_W64_MUXER
|
||||||
|
const AVCodecTag *const ff_wav_codec_tags_list[] = { ff_codec_wav_tags, NULL };
|
||||||
|
#endif
|
||||||
|
|
||||||
const AVMetadataConv ff_riff_info_conv[] = {
|
const AVMetadataConv ff_riff_info_conv[] = {
|
||||||
{ "IART", "artist" },
|
{ "IART", "artist" },
|
||||||
{ "ICMT", "comment" },
|
{ "ICMT", "comment" },
|
||||||
|
@ -74,6 +74,8 @@ extern const AVCodecTag ff_codec_bmp_tags[]; // exposed through avformat_get_rif
|
|||||||
extern const AVCodecTag ff_codec_wav_tags[];
|
extern const AVCodecTag ff_codec_wav_tags[];
|
||||||
/* The following list contains both ff_codec_bmp_tags and ff_codec_wav_tags. */
|
/* The following list contains both ff_codec_bmp_tags and ff_codec_wav_tags. */
|
||||||
extern const AVCodecTag *const ff_riff_codec_tags_list[];
|
extern const AVCodecTag *const ff_riff_codec_tags_list[];
|
||||||
|
/* The following list contains only ff_codec_wav_tags. */
|
||||||
|
extern const AVCodecTag *const ff_wav_codec_tags_list[];
|
||||||
|
|
||||||
extern const AVCodecTag ff_codec_bmp_tags_unofficial[];
|
extern const AVCodecTag ff_codec_bmp_tags_unofficial[];
|
||||||
|
|
||||||
|
@ -821,7 +821,7 @@ AVInputFormat ff_wav_demuxer = {
|
|||||||
.read_packet = wav_read_packet,
|
.read_packet = wav_read_packet,
|
||||||
.read_seek = wav_read_seek,
|
.read_seek = wav_read_seek,
|
||||||
.flags = AVFMT_GENERIC_INDEX,
|
.flags = AVFMT_GENERIC_INDEX,
|
||||||
.codec_tag = (const AVCodecTag * const []) { ff_codec_wav_tags, 0 },
|
.codec_tag = ff_wav_codec_tags_list,
|
||||||
.priv_class = &wav_demuxer_class,
|
.priv_class = &wav_demuxer_class,
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_WAV_DEMUXER */
|
#endif /* CONFIG_WAV_DEMUXER */
|
||||||
@ -978,7 +978,7 @@ AVInputFormat ff_w64_demuxer = {
|
|||||||
.read_packet = wav_read_packet,
|
.read_packet = wav_read_packet,
|
||||||
.read_seek = wav_read_seek,
|
.read_seek = wav_read_seek,
|
||||||
.flags = AVFMT_GENERIC_INDEX,
|
.flags = AVFMT_GENERIC_INDEX,
|
||||||
.codec_tag = (const AVCodecTag * const []) { ff_codec_wav_tags, 0 },
|
.codec_tag = ff_wav_codec_tags_list,
|
||||||
.priv_class = &w64_demuxer_class,
|
.priv_class = &w64_demuxer_class,
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_W64_DEMUXER */
|
#endif /* CONFIG_W64_DEMUXER */
|
||||||
|
@ -514,7 +514,7 @@ AVOutputFormat ff_wav_muxer = {
|
|||||||
.write_trailer = wav_write_trailer,
|
.write_trailer = wav_write_trailer,
|
||||||
.deinit = wav_deinit,
|
.deinit = wav_deinit,
|
||||||
.flags = AVFMT_TS_NONSTRICT,
|
.flags = AVFMT_TS_NONSTRICT,
|
||||||
.codec_tag = (const AVCodecTag* const []){ ff_codec_wav_tags, 0 },
|
.codec_tag = ff_wav_codec_tags_list,
|
||||||
.priv_class = &wav_muxer_class,
|
.priv_class = &wav_muxer_class,
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_WAV_MUXER */
|
#endif /* CONFIG_WAV_MUXER */
|
||||||
@ -612,6 +612,6 @@ AVOutputFormat ff_w64_muxer = {
|
|||||||
.write_packet = wav_write_packet,
|
.write_packet = wav_write_packet,
|
||||||
.write_trailer = w64_write_trailer,
|
.write_trailer = w64_write_trailer,
|
||||||
.flags = AVFMT_TS_NONSTRICT,
|
.flags = AVFMT_TS_NONSTRICT,
|
||||||
.codec_tag = (const AVCodecTag* const []){ ff_codec_wav_tags, 0 },
|
.codec_tag = ff_wav_codec_tags_list,
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_W64_MUXER */
|
#endif /* CONFIG_W64_MUXER */
|
||||||
|
Loading…
Reference in New Issue
Block a user