aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtp.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-12-04 17:47:41 +0100
committerAnton Khirnov <anton@khirnov.net>2021-12-17 10:22:41 +0100
commit230646751d88e90a62a3b4a099d2f6e0e639be10 (patch)
tree688bc82003af23535daefc4fbb7dcb1fc7ee07e9 /libavformat/rtp.c
parent3c9778d342e6709407e3906d680ebab3a3ecd754 (diff)
downloadffmpeg-230646751d88e90a62a3b4a099d2f6e0e639be10.tar.gz
lavf/sdp: add const qualifiers where appropriate
Declares that these structs are read-only for this code.
Diffstat (limited to 'libavformat/rtp.c')
-rw-r--r--libavformat/rtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtp.c b/libavformat/rtp.c
index 38e234391b..c536a6f082 100644
--- a/libavformat/rtp.c
+++ b/libavformat/rtp.c
@@ -87,8 +87,8 @@ int ff_rtp_get_codec_info(AVCodecParameters *par, int payload_type)
return -1;
}
-int ff_rtp_get_payload_type(AVFormatContext *fmt,
- AVCodecParameters *par, int idx)
+int ff_rtp_get_payload_type(const AVFormatContext *fmt,
+ const AVCodecParameters *par, int idx)
{
int i;
const AVOutputFormat *ofmt = fmt ? fmt->oformat : NULL;