summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-10-22 23:13:49 +0300
committerMartin Storsjö <martin@martin.st>2012-10-29 17:47:25 +0200
commitf21d5c905dd5c6a56583c85623a376a029ec041a (patch)
treee24a1829e74086702ff451dc291bcb894084fa3f /libavformat/rtsp.c
parentd4bff9f1ab59f4ae58841bd7b056f2ff1b8854d7 (diff)
rtsp: Avoid a cast when calling strtol
This gets rid of this warning: libavformat/rtsp.c: In function ‘rtsp_parse_transport’: libavformat/rtsp.c:794: warning: cast discards qualifiers from pointer target type Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index bbe08e686e..44de4af192 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -765,8 +765,10 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p)
th->lower_transport = RTSP_LOWER_TRANSPORT_UDP_MULTICAST;
} else if (!strcmp(parameter, "ttl")) {
if (*p == '=') {
+ char *end;
p++;
- th->ttl = strtol(p, (char **)&p, 10);
+ th->ttl = strtol(p, &end, 10);
+ p = end;
}
} else if (!strcmp(parameter, "destination")) {
if (*p == '=') {