git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f8bfbe
)
lavu/parseutils: Allow to parse >= 100 hours.
author
Carl Eugen Hoyos
<ceffmpeg@gmail.com>
Sat, 9 Feb 2019 00:20:43 +0000
(
01:20
+0100)
committer
Carl Eugen Hoyos
<ceffmpeg@gmail.com>
Sat, 9 Feb 2019 12:59:10 +0000
(13:59 +0100)
Reported and tested by gamnark.
Fixes ticket #7721.
libavutil/parseutils.c
patch
|
blob
|
history
diff --git
a/libavutil/parseutils.c
b/libavutil/parseutils.c
index
59bec6c
..
167e822
100644
(file)
--- a/
libavutil/parseutils.c
+++ b/
libavutil/parseutils.c
@@
-504,7
+504,7
@@
char *av_small_strptime(const char *p, const char *fmt, struct tm *dt)
switch(c) {
case 'H':
case 'J':
- val = date_get_num(&p, 0, c == 'H' ? 23 : INT_MAX,
2
);
+ val = date_get_num(&p, 0, c == 'H' ? 23 : INT_MAX,
c == 'H' ? 2 : 4
);
if (val == -1)
return NULL;