mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
d4bff9f1ab
commit
f21d5c905d
|
@ -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 == '=') {
|
||||
|
|
Loading…
Reference in New Issue