lavf/sdp: add const qualifiers where appropriate

Declares that these structs are read-only for this code.
This commit is contained in:
Anton Khirnov
2021-12-04 17:47:41 +01:00
parent 3c9778d342
commit 230646751d
4 changed files with 17 additions and 16 deletions

View File

@@ -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;