Skip to content

Commit

Permalink
avformat: Constify all muxer/demuxers
Browse files Browse the repository at this point in the history
This is possible now that the next-API is gone.

Signed-off-by: Andreas Rheinhardt <[email protected]>
Signed-off-by: James Almer <[email protected]>
  • Loading branch information
mkver authored and jamrial committed Apr 27, 2021
1 parent d92f38c commit bc70684
Show file tree
Hide file tree
Showing 327 changed files with 927 additions and 927 deletions.
2 changes: 1 addition & 1 deletion libavformat/3dostr.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static int threedostr_read_packet(AVFormatContext *s, AVPacket *pkt)
return AVERROR_EOF;
}

AVInputFormat ff_threedostr_demuxer = {
const AVInputFormat ff_threedostr_demuxer = {
.name = "3dostr",
.long_name = NULL_IF_CONFIG_SMALL("3DO STR"),
.read_probe = threedostr_probe,
Expand Down
2 changes: 1 addition & 1 deletion libavformat/4xm.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ static int fourxm_read_close(AVFormatContext *s)
return 0;
}

AVInputFormat ff_fourxm_demuxer = {
const AVInputFormat ff_fourxm_demuxer = {
.name = "4xm",
.long_name = NULL_IF_CONFIG_SMALL("4X Technologies"),
.priv_data_size = sizeof(FourxmDemuxContext),
Expand Down
2 changes: 1 addition & 1 deletion libavformat/a64.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static int a64_write_header(AVFormatContext *s)
return 0;
}

AVOutputFormat ff_a64_muxer = {
const AVOutputFormat ff_a64_muxer = {
.name = "a64",
.long_name = NULL_IF_CONFIG_SMALL("a64 - video for Commodore 64"),
.extensions = "a64, A64",
Expand Down
2 changes: 1 addition & 1 deletion libavformat/aacdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static int adts_aac_read_packet(AVFormatContext *s, AVPacket *pkt)
return ret;
}

AVInputFormat ff_aac_demuxer = {
const AVInputFormat ff_aac_demuxer = {
.name = "aac",
.long_name = NULL_IF_CONFIG_SMALL("raw ADTS AAC (Advanced Audio Coding)"),
.read_probe = adts_aac_probe,
Expand Down
2 changes: 1 addition & 1 deletion libavformat/aadec.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static const AVClass aa_class = {
.version = LIBAVUTIL_VERSION_INT,
};

AVInputFormat ff_aa_demuxer = {
const AVInputFormat ff_aa_demuxer = {
.name = "aa",
.long_name = NULL_IF_CONFIG_SMALL("Audible AA format files"),
.priv_class = &aa_class,
Expand Down
2 changes: 1 addition & 1 deletion libavformat/aaxdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static int aax_read_close(AVFormatContext *s)
return 0;
}

AVInputFormat ff_aax_demuxer = {
const AVInputFormat ff_aax_demuxer = {
.name = "aax",
.long_name = NULL_IF_CONFIG_SMALL("CRI AAX"),
.priv_data_size = sizeof(AAXContext),
Expand Down
4 changes: 2 additions & 2 deletions libavformat/ac3dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static int ac3_probe(const AVProbeData *p)
}

FF_RAW_DEMUXER_CLASS(ac3)
AVInputFormat ff_ac3_demuxer = {
const AVInputFormat ff_ac3_demuxer = {
.name = "ac3",
.long_name = NULL_IF_CONFIG_SMALL("raw AC-3"),
.read_probe = ac3_probe,
Expand All @@ -124,7 +124,7 @@ static int eac3_probe(const AVProbeData *p)
}

FF_RAW_DEMUXER_CLASS(eac3)
AVInputFormat ff_eac3_demuxer = {
const AVInputFormat ff_eac3_demuxer = {
.name = "eac3",
.long_name = NULL_IF_CONFIG_SMALL("raw E-AC-3"),
.read_probe = eac3_probe,
Expand Down
2 changes: 1 addition & 1 deletion libavformat/acedec.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static int ace_read_packet(AVFormatContext *s, AVPacket *pkt)
return av_get_packet(s->pb, pkt, par->block_align);
}

AVInputFormat ff_ace_demuxer = {
const AVInputFormat ff_ace_demuxer = {
.name = "ace",
.long_name = NULL_IF_CONFIG_SMALL("tri-Ace Audio Container"),
.read_probe = ace_probe,
Expand Down
2 changes: 1 addition & 1 deletion libavformat/acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static int acm_read_header(AVFormatContext *s)
}

FF_RAW_DEMUXER_CLASS(acm)
AVInputFormat ff_acm_demuxer = {
const AVInputFormat ff_acm_demuxer = {
.name = "acm",
.long_name = NULL_IF_CONFIG_SMALL("Interplay ACM"),
.read_probe = acm_probe,
Expand Down
2 changes: 1 addition & 1 deletion libavformat/act.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static int read_packet(AVFormatContext *s,
return ret;
}

AVInputFormat ff_act_demuxer = {
const AVInputFormat ff_act_demuxer = {
.name = "act",
.long_name = "ACT Voice file format",
.priv_data_size = sizeof(ACTContext),
Expand Down
2 changes: 1 addition & 1 deletion libavformat/adp.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static int adp_read_packet(AVFormatContext *s, AVPacket *pkt)
return ret;
}

AVInputFormat ff_adp_demuxer = {
const AVInputFormat ff_adp_demuxer = {
.name = "adp",
.long_name = NULL_IF_CONFIG_SMALL("ADP"),
.read_probe = adp_probe,
Expand Down
2 changes: 1 addition & 1 deletion libavformat/ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int ads_read_packet(AVFormatContext *s, AVPacket *pkt)
return ret;
}

AVInputFormat ff_ads_demuxer = {
const AVInputFormat ff_ads_demuxer = {
.name = "ads",
.long_name = NULL_IF_CONFIG_SMALL("Sony PS2 ADS"),
.read_probe = ads_probe,
Expand Down
2 changes: 1 addition & 1 deletion libavformat/adtsenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static const AVClass adts_muxer_class = {
.version = LIBAVUTIL_VERSION_INT,
};

AVOutputFormat ff_adts_muxer = {
const AVOutputFormat ff_adts_muxer = {
.name = "adts",
.long_name = NULL_IF_CONFIG_SMALL("ADTS AAC (Advanced Audio Coding)"),
.mime_type = "audio/aac",
Expand Down
2 changes: 1 addition & 1 deletion libavformat/adxdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static int adx_read_header(AVFormatContext *s)
return 0;
}

AVInputFormat ff_adx_demuxer = {
const AVInputFormat ff_adx_demuxer = {
.name = "adx",
.long_name = NULL_IF_CONFIG_SMALL("CRI ADX"),
.read_probe = adx_probe,
Expand Down
2 changes: 1 addition & 1 deletion libavformat/aea.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static int aea_read_packet(AVFormatContext *s, AVPacket *pkt)
return ret;
}

AVInputFormat ff_aea_demuxer = {
const AVInputFormat ff_aea_demuxer = {
.name = "aea",
.long_name = NULL_IF_CONFIG_SMALL("MD STUDIO audio"),
.read_probe = aea_read_probe,
Expand Down
2 changes: 1 addition & 1 deletion libavformat/afc.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static int afc_read_packet(AVFormatContext *s, AVPacket *pkt)
return ret;
}

AVInputFormat ff_afc_demuxer = {
const AVInputFormat ff_afc_demuxer = {
.name = "afc",
.long_name = NULL_IF_CONFIG_SMALL("AFC"),
.priv_data_size = sizeof(AFCDemuxContext),
Expand Down
2 changes: 1 addition & 1 deletion libavformat/aiffdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ static int aiff_read_packet(AVFormatContext *s,
return 0;
}

AVInputFormat ff_aiff_demuxer = {
const AVInputFormat ff_aiff_demuxer = {
.name = "aiff",
.long_name = NULL_IF_CONFIG_SMALL("Audio IFF"),
.priv_data_size = sizeof(AIFFInputContext),
Expand Down
2 changes: 1 addition & 1 deletion libavformat/aiffenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ static const AVClass aiff_muxer_class = {
.version = LIBAVUTIL_VERSION_INT,
};

AVOutputFormat ff_aiff_muxer = {
const AVOutputFormat ff_aiff_muxer = {
.name = "aiff",
.long_name = NULL_IF_CONFIG_SMALL("Audio IFF"),
.mime_type = "audio/aiff",
Expand Down
2 changes: 1 addition & 1 deletion libavformat/aixdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static int aix_read_packet(AVFormatContext *s, AVPacket *pkt)
return ret;
}

AVInputFormat ff_aix_demuxer = {
const AVInputFormat ff_aix_demuxer = {
.name = "aix",
.long_name = NULL_IF_CONFIG_SMALL("CRI AIX"),
.read_probe = aix_probe,
Expand Down
Loading

0 comments on commit bc70684

Please sign in to comment.