[vlc-commits] demux: subtitle: read dropframe timecode

Francois Cartegnie git at videolan.org
Wed Dec 6 19:13:53 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec  6 13:35:33 2017 +0100| [533431b6f6e83d3111092932b80e4088eb04a2e8] | committer: Francois Cartegnie

demux: subtitle: read dropframe timecode

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

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

diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index b1f912e9e8..65ac9e625d 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -2387,7 +2387,7 @@ static int ParseSCC( vlc_object_t *p_obj, subs_properties_t *p_props,
             return VLC_EGENERIC;
 
         unsigned h, m, s, f;
-        if( sscanf( psz_line, "%u:%u:%u:%u ", &h, &m, &s, &f ) != 4 )
+        if( sscanf( psz_line, "%u:%u:%u%*[:;]%u ", &h, &m, &s, &f ) != 4 )
             continue;
 
         p_subtitle->i_start = CLOCK_FREQ * ( h * 3600 + m * 60 + s ) +



More information about the vlc-commits mailing list