ffmpeg | branch: master | Marton Balint <c...@passwd.hu> | Sat Feb 6 18:02:11 2016 +0100| [a573e6c10371bf3e3cf7e9c22abe3c07cc1c2a45] | committer: Marton Balint
avformat/utils: remove ff_iso8601_to_unix_time Signed-off-by: Marton Balint <c...@passwd.hu> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a573e6c10371bf3e3cf7e9c22abe3c07cc1c2a45 --- libavformat/internal.h | 5 ----- libavformat/utils.c | 12 ------------ 2 files changed, 17 deletions(-) diff --git a/libavformat/internal.h b/libavformat/internal.h index dc76f2c..fee823d 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -321,11 +321,6 @@ void ff_reduce_index(AVFormatContext *s, int stream_index); enum AVCodecID ff_guess_image2_codec(const char *filename); /** - * Convert a date string in ISO8601 format to Unix timestamp. - */ -int64_t ff_iso8601_to_unix_time(const char *datestr); - -/** * Perform a binary search using av_index_search_timestamp() and * AVInputFormat.read_timestamp(). * diff --git a/libavformat/utils.c b/libavformat/utils.c index cf4124a..129a49d 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -4234,18 +4234,6 @@ int ff_find_stream_index(AVFormatContext *s, int id) return -1; } -int64_t ff_iso8601_to_unix_time(const char *datestr) -{ - struct tm time1 = { 0 }, time2 = { 0 }; - const char *ret1, *ret2; - ret1 = av_small_strptime(datestr, "%Y - %m - %d %T", &time1); - ret2 = av_small_strptime(datestr, "%Y - %m - %dT%T", &time2); - if (ret2 && !ret1) - return av_timegm(&time2); - else - return av_timegm(&time1); -} - int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id, int std_compliance) { _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog