summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_amr.c
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 /libavformat/rtpdec_amr.c
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>
Diffstat (limited to 'libavformat/rtpdec_amr.c')
-rw-r--r--libavformat/rtpdec_amr.c4
1 files changed, 2 insertions, 2 deletions
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);