summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-24 23:44:20 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-24 23:44:25 +0100
commitd2a5c6f2104db563491be0d16b722a1f7bbe65e4 (patch)
treed00a64f0a8bb89341c16b007d840af868bb370bd
parent499da717b8f3f7d7f19bd88f25b53944084f7977 (diff)
parentec96a89c3e507cf0fb1f2b159b28a53f2bad9a74 (diff)
Merge commit 'ec96a89c3e507cf0fb1f2b159b28a53f2bad9a74'
* commit 'ec96a89c3e507cf0fb1f2b159b28a53f2bad9a74': rtpdec: Don't pass non-const pointers to fmtp attribute parsing functions Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/rtpdec.c2
-rw-r--r--libavformat/rtpdec.h2
-rw-r--r--libavformat/rtpdec_amr.c4
-rw-r--r--libavformat/rtpdec_dv.c2
-rw-r--r--libavformat/rtpdec_h264.c2
-rw-r--r--libavformat/rtpdec_hevc.c2
-rw-r--r--libavformat/rtpdec_ilbc.c2
-rw-r--r--libavformat/rtpdec_latm.c2
-rw-r--r--libavformat/rtpdec_mpeg4.c2
-rw-r--r--libavformat/rtpdec_xiph.c2
10 files changed, 11 insertions, 11 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 5875905c54..8cd2f26a7c 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -852,7 +852,7 @@ int ff_parse_fmtp(AVFormatContext *s,
int (*parse_fmtp)(AVFormatContext *s,
AVStream *stream,
PayloadContext *data,
- char *attr, char *value))
+ const char *attr, const char *value))
{
char attr[256];
char *value;
diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h
index b950160c45..0fb88c795c 100644
--- a/libavformat/rtpdec.h
+++ b/libavformat/rtpdec.h
@@ -207,7 +207,7 @@ int ff_parse_fmtp(AVFormatContext *s,
int (*parse_fmtp)(AVFormatContext *s,
AVStream *stream,
PayloadContext *data,
- char *attr, char *value));
+ const char *attr, const char *value));
void ff_register_rtp_dynamic_payload_handlers(void);
diff --git a/libavformat/rtpdec_amr.c b/libavformat/rtpdec_amr.c
index 3f1c61c615..d79b236fbb 100644
--- a/libavformat/rtpdec_amr.c
+++ b/libavformat/rtpdec_amr.c
@@ -137,7 +137,7 @@ static int amr_handle_packet(AVFormatContext *ctx, PayloadContext *data,
static int amr_parse_fmtp(AVFormatContext *s,
AVStream *stream, PayloadContext *data,
- char *attr, char *value)
+ const char *attr, const char *value)
{
/* Some AMR SDP configurations contain "octet-align", without
* the trailing =1. Therefore, if the value is empty,
@@ -146,7 +146,7 @@ static int amr_parse_fmtp(AVFormatContext *s,
if (!strcmp(value, "")) {
av_log(s, AV_LOG_WARNING, "AMR fmtp attribute %s had "
"nonstandard empty value\n", attr);
- strcpy(value, "1");
+ value = "1";
}
if (!strcmp(attr, "octet-align"))
data->octet_align = atoi(value);
diff --git a/libavformat/rtpdec_dv.c b/libavformat/rtpdec_dv.c
index bd18e8fc82..d8a4de4c07 100644
--- a/libavformat/rtpdec_dv.c
+++ b/libavformat/rtpdec_dv.c
@@ -48,7 +48,7 @@ static av_cold void dv_free_context(PayloadContext *data)
static av_cold int dv_sdp_parse_fmtp_config(AVFormatContext *s,
AVStream *stream,
PayloadContext *dv_data,
- char *attr, char *value)
+ const char *attr, const char *value)
{
/* does the DV stream include audio? */
if (!strcmp(attr, "audio") && !strcmp(value, "bundled"))
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index e237a03d76..5db3b56e81 100644
--- a/libavformat/rtpdec_h264.c
+++ b/libavformat/rtpdec_h264.c
@@ -144,7 +144,7 @@ int ff_h264_parse_sprop_parameter_sets(AVFormatContext *s,
static int sdp_parse_fmtp_config_h264(AVFormatContext *s,
AVStream *stream,
PayloadContext *h264_data,
- char *attr, char *value)
+ const char *attr, const char *value)
{
AVCodecContext *codec = stream->codec;
diff --git a/libavformat/rtpdec_hevc.c b/libavformat/rtpdec_hevc.c
index 7e4003c82b..8e25e96044 100644
--- a/libavformat/rtpdec_hevc.c
+++ b/libavformat/rtpdec_hevc.c
@@ -49,7 +49,7 @@ static const uint8_t start_sequence[] = { 0x00, 0x00, 0x00, 0x01 };
static av_cold int hevc_sdp_parse_fmtp_config(AVFormatContext *s,
AVStream *stream,
PayloadContext *hevc_data,
- char *attr, char *value)
+ const char *attr, const char *value)
{
/* profile-space: 0-3 */
/* profile-id: 0-31 */
diff --git a/libavformat/rtpdec_ilbc.c b/libavformat/rtpdec_ilbc.c
index aa1579fa63..82109e1344 100644
--- a/libavformat/rtpdec_ilbc.c
+++ b/libavformat/rtpdec_ilbc.c
@@ -25,7 +25,7 @@
static int ilbc_parse_fmtp(AVFormatContext *s,
AVStream *stream, PayloadContext *data,
- char *attr, char *value)
+ const char *attr, const char *value)
{
if (!strcmp(attr, "mode")) {
int mode = atoi(value);
diff --git a/libavformat/rtpdec_latm.c b/libavformat/rtpdec_latm.c
index bf255f83c0..74bf4f5ce1 100644
--- a/libavformat/rtpdec_latm.c
+++ b/libavformat/rtpdec_latm.c
@@ -137,7 +137,7 @@ end:
static int parse_fmtp(AVFormatContext *s,
AVStream *stream, PayloadContext *data,
- char *attr, char *value)
+ const char *attr, const char *value)
{
int res;
diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c
index 531d076aa5..3ad82dda2d 100644
--- a/libavformat/rtpdec_mpeg4.c
+++ b/libavformat/rtpdec_mpeg4.c
@@ -273,7 +273,7 @@ static int aac_parse_packet(AVFormatContext *ctx, PayloadContext *data,
static int parse_fmtp(AVFormatContext *s,
AVStream *stream, PayloadContext *data,
- char *attr, char *value)
+ const char *attr, const char *value)
{
AVCodecContext *codec = stream->codec;
int res, i;
diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c
index 6ed8667726..7c32cdb2a9 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;