diff options
author | Ilya <ilyaDOTilba@gmail.com> | 2011-03-26 17:13:36 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-03-26 17:13:36 +0100 |
commit | 907783f221ad9594a528681e30777705f11bf0b5 (patch) | |
tree | ac3b0826ad3112102cce8bfb587e7f1908f33741 /libavformat | |
parent | 813dbb44424846274a318bfc6d02a53b4189f884 (diff) | |
download | ffmpeg-907783f221ad9594a528681e30777705f11bf0b5.tar.gz |
Use strtoul to parse rtptime and seq values.
strtol could return negative values, leading to various error messages,
mainly "non-monotonically increasing dts".
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 0b8430938d..f81a604d2c 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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'; |