[vlc-commits] codec: webvtt: hours can be > 2 digits

Francois Cartegnie git at videolan.org
Thu Feb 1 15:42:52 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb  1 13:42:34 2018 +0100| [4ee0d305109fa3a5f42d5ca857225c336bfd7683] | committer: Francois Cartegnie

codec: webvtt: hours can be > 2 digits

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4ee0d305109fa3a5f42d5ca857225c336bfd7683
---

 modules/codec/webvtt/webvtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/webvtt/webvtt.c b/modules/codec/webvtt/webvtt.c
index 360ba1810a..855462c05a 100644
--- a/modules/codec/webvtt/webvtt.c
+++ b/modules/codec/webvtt/webvtt.c
@@ -105,7 +105,7 @@ bool webvtt_scan_time( const char *psz, mtime_t *p_time )
         *p_time = MakeTime( t );
         return true;
     }
-    else if( sscanf( psz, "%2u:%2u:%2u.%3u",
+    else if( sscanf( psz, "%u:%2u:%2u.%3u",
                           &t[0], &t[1], &t[2], &t[3] ) == 4 )
     {
         *p_time = MakeTime( t );



More information about the vlc-commits mailing list