From ec96a89c3e507cf0fb1f2b159b28a53f2bad9a74 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 24 Feb 2015 12:32:17 +0200 Subject: rtpdec: Don't pass non-const pointers to fmtp attribute parsing functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes it clear that the individual parsing functions can't touch the parsed out value. Signed-off-by: Martin Storsjö --- libavformat/rtpdec_xiph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/rtpdec_xiph.c') diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c index d7a08bca4d..d52de82435 100644 --- a/libavformat/rtpdec_xiph.c +++ b/libavformat/rtpdec_xiph.c @@ -295,7 +295,7 @@ parse_packed_headers(const uint8_t * packed_headers, static int xiph_parse_fmtp_pair(AVFormatContext *s, AVStream* stream, PayloadContext *xiph_data, - char *attr, char *value) + const char *attr, const char *value) { AVCodecContext *codec = stream->codec; int result = 0; -- cgit v1.2.3