[FFmpeg-cvslog] rtpdec_mpeg4: const correctness for parse_fmtp_config()

Diego Biurrun git at videolan.org
Mon Apr 3 21:45:41 EEST 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Tue Mar  8 22:53:42 2016 +0100| [97cd7a3dc005a0ad1656dbb2af92e9c5d0731f21] | committer: Diego Biurrun

rtpdec_mpeg4: const correctness for parse_fmtp_config()

libavformat/rtpdec_mpeg4.c:282:38: warning: passing argument 2 of ‘parse_fmtp_config’ discards ‘const’ qualifier from pointer target type

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97cd7a3dc005a0ad1656dbb2af92e9c5d0731f21
---

 libavformat/rtpdec_mpeg4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c
index bc50da2..00a732b 100644
--- a/libavformat/rtpdec_mpeg4.c
+++ b/libavformat/rtpdec_mpeg4.c
@@ -97,7 +97,7 @@ static void close_context(PayloadContext *data)
     av_free(data->mode);
 }
 
-static int parse_fmtp_config(AVCodecParameters *par, char *value)
+static int parse_fmtp_config(AVCodecParameters *par, const char *value)
 {
     /* decode the hexa encoded parameter */
     int len = ff_hex_to_data(NULL, value);



More information about the ffmpeg-cvslog mailing list