Browse Source

lavu/parseutils: Allow to parse >= 100 hours.

Reported and tested by gamnark.
Fixes ticket #7721.
tags/n4.2
Carl Eugen Hoyos 6 years ago
parent
commit
0cac68bcf9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/parseutils.c

+ 1
- 1
libavutil/parseutils.c View File

@@ -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;


Loading…
Cancel
Save