mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/rso: Deduplicate codec tags list
Also saves a relocation. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
e772e253cb
commit
cccb7cf44e
@ -28,3 +28,5 @@ const AVCodecTag ff_codec_rso_tags[] = {
|
||||
{ AV_CODEC_ID_ADPCM_IMA_WAV, 0x0101 },
|
||||
{ AV_CODEC_ID_NONE, 0 },
|
||||
};
|
||||
|
||||
const AVCodecTag *const ff_rso_codec_tags_list[] = { ff_codec_rso_tags, NULL };
|
||||
|
@ -28,5 +28,6 @@
|
||||
|
||||
/* The libavcodec codecs we support, and the IDs they have in the file */
|
||||
extern const AVCodecTag ff_codec_rso_tags[];
|
||||
extern const AVCodecTag *const ff_rso_codec_tags_list[];
|
||||
|
||||
#endif /* AVFORMAT_RSO_H */
|
||||
|
@ -79,5 +79,5 @@ AVInputFormat ff_rso_demuxer = {
|
||||
.read_header = rso_read_header,
|
||||
.read_packet = ff_pcm_read_packet,
|
||||
.read_seek = ff_pcm_read_seek,
|
||||
.codec_tag = (const AVCodecTag* const []){ff_codec_rso_tags, 0},
|
||||
.codec_tag = ff_rso_codec_tags_list,
|
||||
};
|
||||
|
@ -100,6 +100,6 @@ AVOutputFormat ff_rso_muxer = {
|
||||
.write_header = rso_write_header,
|
||||
.write_packet = ff_raw_write_packet,
|
||||
.write_trailer = rso_write_trailer,
|
||||
.codec_tag = (const AVCodecTag* const []){ff_codec_rso_tags, 0},
|
||||
.codec_tag = ff_rso_codec_tags_list,
|
||||
.flags = AVFMT_NOTIMESTAMPS,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user