summaryrefslogtreecommitdiffstats
path: root/libavutil/parseutils.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-02-09 01:20:43 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-02-09 13:59:10 +0100
commit0cac68bcf94ed0914ba97a15d7ccd38e5a2a566d (patch)
tree488c2466a5aeffb33dd814be10dfce76418349ba /libavutil/parseutils.c
parent7f8bfbee36638f3bcacea8a6af5eece8878833ed (diff)
downloadffmpeg-streaming-0cac68bcf94ed0914ba97a15d7ccd38e5a2a566d.zip
ffmpeg-streaming-0cac68bcf94ed0914ba97a15d7ccd38e5a2a566d.tar.gz
lavu/parseutils: Allow to parse >= 100 hours.
Reported and tested by gamnark. Fixes ticket #7721.
Diffstat (limited to 'libavutil/parseutils.c')
-rw-r--r--libavutil/parseutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 59bec6c..167e822 100644
--- 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;
OpenPOWER on IntegriCloud