OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d980d7b
)
rtsp: use strtoul to parse rtptime and seq values.
author
Ilya
<ilyaDOTilba@gmail.com>
Sat, 26 Mar 2011 16:13:36 +0000
(17:13 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Tue, 24 May 2011 17:11:28 +0000
(19:11 +0200)
strtol could return negative values, leading to various error messages,
mainly "non-monotonically increasing dts".
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/rtsp.c
patch
|
blob
|
history
diff --git
a/libavformat/rtsp.c
b/libavformat/rtsp.c
index
2ebf7e0
..
2d1438d
100644
(file)
--- a/
libavformat/rtsp.c
+++ b/
libavformat/rtsp.c
@@
-744,9
+744,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 = strto
u
l(value, NULL, 10);
else if (!strcmp(key, "rtptime"))
- rtptime = strtol(value, NULL, 10);
+ rtptime = strto
u
l(value, NULL, 10);
if (*p == ',') {
handle_rtp_info(rt, url, seq, rtptime);
url[0] = '\0';