summaryrefslogtreecommitdiff
path: root/libavformat/amr.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-19 19:45:24 +0200
committerJames Almer <jamrial@gmail.com>2021-04-27 11:48:06 -0300
commitbc70684e74a185d7b80c8b80bdedda659cb581b8 (patch)
tree2be0c484f566fa11c97e3b51b99353c8d2647ea5 /libavformat/amr.c
parentd92f38c179591a608390ffa9fee59c309142e79d (diff)
downloadffmpeg-bc70684e74a185d7b80c8b80bdedda659cb581b8.tar.gz
avformat: Constify all muxer/demuxers
This is possible now that the next-API is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/amr.c')
-rw-r--r--libavformat/amr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/amr.c b/libavformat/amr.c
index e4f8e4d860..836b276fd5 100644
--- a/libavformat/amr.c
+++ b/libavformat/amr.c
@@ -159,7 +159,7 @@ static int amr_read_packet(AVFormatContext *s, AVPacket *pkt)
}
#if CONFIG_AMR_DEMUXER
-AVInputFormat ff_amr_demuxer = {
+const AVInputFormat ff_amr_demuxer = {
.name = "amr",
.long_name = NULL_IF_CONFIG_SMALL("3GPP AMR"),
.priv_data_size = sizeof(AMRContext),
@@ -215,7 +215,7 @@ static int amrnb_read_header(AVFormatContext *s)
return 0;
}
-AVInputFormat ff_amrnb_demuxer = {
+const AVInputFormat ff_amrnb_demuxer = {
.name = "amrnb",
.long_name = NULL_IF_CONFIG_SMALL("raw AMR-NB"),
.priv_data_size = sizeof(AMRContext),
@@ -271,7 +271,7 @@ static int amrwb_read_header(AVFormatContext *s)
return 0;
}
-AVInputFormat ff_amrwb_demuxer = {
+const AVInputFormat ff_amrwb_demuxer = {
.name = "amrwb",
.long_name = NULL_IF_CONFIG_SMALL("raw AMR-WB"),
.priv_data_size = sizeof(AMRContext),
@@ -283,7 +283,7 @@ AVInputFormat ff_amrwb_demuxer = {
#endif
#if CONFIG_AMR_MUXER
-AVOutputFormat ff_amr_muxer = {
+const AVOutputFormat ff_amr_muxer = {
.name = "amr",
.long_name = NULL_IF_CONFIG_SMALL("3GPP AMR"),
.mime_type = "audio/amr",