Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6379900c
Commit
6379900c
authored
Jul 13, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a check for strptime().
It's an XSI extension, not available on some supported systems.
parent
001d668d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
configure
configure
+2
-0
utils.c
libavformat/utils.c
+6
-0
No files found.
configure
View file @
6379900c
...
...
@@ -1105,6 +1105,7 @@ HAVE_LIST="
poll_h
setrlimit
strerror_r
strptime
strtok_r
struct_addrinfo
struct_ipv6_mreq
...
...
@@ -2775,6 +2776,7 @@ check_func mmap
check_func
${
malloc_prefix
}
posix_memalign
&&
enable
posix_memalign
check_func setrlimit
check_func strerror_r
check_func strptime
check_func strtok_r
check_func_headers io.h setmode
check_func_headers lzo/lzo1x.h lzo1x_999_compress
...
...
libavformat/utils.c
View file @
6379900c
...
...
@@ -3887,7 +3887,13 @@ void ff_make_absolute_url(char *buf, int size, const char *base,
int64_t
ff_iso8601_to_unix_time
(
const
char
*
datestr
)
{
#if HAVE_STRPTIME
struct
tm
time
=
{
0
};
strptime
(
datestr
,
"%Y - %m - %dT%T"
,
&
time
);
return
mktime
(
&
time
);
#else
av_log
(
NULL
,
AV_LOG_WARNING
,
"strptime() unavailable on this system, cannot convert "
"the date string.
\n
"
);
return
0
;
#endif
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment