From ee60e04c2c07b907bf72d1092c43b972c9c5e725 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 16 Feb 2011 08:52:37 +0000 Subject: Replace remaining uses of parse_date with av_parse_time. Signed-off-by: Mans Rullgard (cherry picked from commit 9fcae9735e3b97366dcee9ca3c2f6cf4faf6756f) --- libavformat/rtsp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libavformat/rtsp.c') diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index d828c8d09b..cee3d7e38b 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -22,6 +22,7 @@ #include "libavutil/base64.h" #include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" +#include "libavutil/parseutils.h" #include "libavutil/random_seed.h" #include "avformat.h" @@ -99,11 +100,11 @@ 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); - *start = parse_date(buf, 1); + av_parse_time(start, buf, 1); if (*p == '-') { p++; get_word_sep(buf, sizeof(buf), "-", &p); - *end = parse_date(buf, 1); + av_parse_time(end, buf, 1); } // av_log(NULL, AV_LOG_DEBUG, "Range Start: %lld\n", *start); // av_log(NULL, AV_LOG_DEBUG, "Range End: %lld\n", *end); -- cgit v1.2.3