mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-14 19:25:01 +00:00
Use strtoul to parse rtptime and seq values.
strtol could return negative values, leading to various error messages, mainly "non-monotonically increasing dts".
This commit is contained in:
parent
813dbb4442
commit
907783f221
@ -743,9 +743,9 @@ static void rtsp_parse_rtp_info(RTSPState *rt, const char *p)
|
||||
if (!strcmp(key, "url"))
|
||||
av_strlcpy(url, value, sizeof(url));
|
||||
else if (!strcmp(key, "seq"))
|
||||
seq = strtol(value, NULL, 10);
|
||||
seq = strtoul(value, NULL, 10);
|
||||
else if (!strcmp(key, "rtptime"))
|
||||
rtptime = strtol(value, NULL, 10);
|
||||
rtptime = strtoul(value, NULL, 10);
|
||||
if (*p == ',') {
|
||||
handle_rtp_info(rt, url, seq, rtptime);
|
||||
url[0] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user