summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 70b948d3cb..1b60b4ff44 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -169,15 +169,12 @@ static void rtsp_parse_range_npt(const char *p, int64_t *start, int64_t *end)
*end = AV_NOPTS_VALUE;
get_word_sep(buf, sizeof(buf), "-", &p);
- if (av_parse_time(start, buf, 1) < 0) {
- av_log(NULL, AV_LOG_ERROR, "Invalid interval start specification '%s'\n", buf);
+ if (av_parse_time(start, buf, 1) < 0)
return;
- }
if (*p == '-') {
p++;
get_word_sep(buf, sizeof(buf), "-", &p);
- if (av_parse_time(end, buf, 1) < 0)
- av_log(NULL, AV_LOG_ERROR, "Invalid interval end specification '%s'\n", buf);
+ av_parse_time(end, buf, 1);
}
}