Commit 5a681f69 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: subtitle: read dropframe timecode

(cherry picked from commit 533431b6)
parent 12fa1382
......@@ -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 ) +
......
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