summaryrefslogtreecommitdiff
path: root/libavformat/rtmpproto.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-11 23:03:01 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-11 23:04:24 +0200
commitf91b635b520aec02cfd23ff91d00a7eb4ef89292 (patch)
tree5a65a678cb73aecf97ec81084cddc9a1eda35c90 /libavformat/rtmpproto.c
parent94d5650266f3bd5a43088f4419a1d60f89d6249c (diff)
rtmpproto: replace strtok_r by av_strtok its unavailable in mingw
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r--libavformat/rtmpproto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 9469ed3c8e..6e53e9e4a9 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -130,8 +130,8 @@ static int rtmp_write_amf_data(URLContext *s, char *param, uint8_t **p)
value = param + 2;
} else if (param[0] == 'N' && param[1] && param[2] == ':') {
type = param[1];
- field = strtok_r(param + 3, ":", &saveptr);
- value = strtok_r(NULL, ":", &saveptr);
+ field = av_strtok(param + 3, ":", &saveptr);
+ value = av_strtok(NULL, ":", &saveptr);
if (!field || !value)
goto fail;
@@ -229,7 +229,7 @@ static int gen_connect(URLContext *s, RTMPContext *rt)
char *param, *saveptr;
// Write arbitrary AMF data to the Connect message.
- param = strtok_r(rt->conn, " ", &saveptr);
+ param = av_strtok(rt->conn, " ", &saveptr);
while (param != NULL) {
if ((ret = rtmp_write_amf_data(s, param, &p)) < 0) {
// Invalid AMF parameter.
@@ -237,7 +237,7 @@ static int gen_connect(URLContext *s, RTMPContext *rt)
return ret;
}
- param = strtok_r(NULL, " ", &saveptr);
+ param = av_strtok(NULL, " ", &saveptr);
}
}