Commit 0cac68bc authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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

Reported and tested by gamnark.
Fixes ticket #7721.
parent 7f8bfbee
...@@ -504,7 +504,7 @@ char *av_small_strptime(const char *p, const char *fmt, struct tm *dt) ...@@ -504,7 +504,7 @@ char *av_small_strptime(const char *p, const char *fmt, struct tm *dt)
switch(c) { switch(c) {
case 'H': case 'H':
case 'J': 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) if (val == -1)
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment