[FFmpeg-cvslog] lavu/parseutils: Allow to parse >= 100 hours.

Carl Eugen Hoyos git at videolan.org
Sat Feb 9 14:59:53 EET 2019


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Sat Feb  9 01:20:43 2019 +0100| [0cac68bcf94ed0914ba97a15d7ccd38e5a2a566d] | committer: Carl Eugen Hoyos

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

Reported and tested by gamnark.
Fixes ticket #7721.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0cac68bcf94ed0914ba97a15d7ccd38e5a2a566d
---

 libavutil/parseutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 59bec6cc9d..167e822648 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;



More information about the ffmpeg-cvslog mailing list