Commit 4bfa7204 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

jacosub: Fix format specifier

%[] will always attempt to store a final 0, which doesn't fit here.
parent fa1eb694
......@@ -2424,7 +2424,8 @@ static int ParseSCC( vlc_object_t *p_obj, subs_properties_t *p_props,
unsigned h, m, s, f;
char c;
if( sscanf( psz_line, "%u:%u:%u%[:;]%u ", &h, &m, &s, &c, &f ) != 5 )
if( sscanf( psz_line, "%u:%u:%u%c%u ", &h, &m, &s, &c, &f ) != 5 ||
( c != ':' && c != ';' ) )
continue;
/* convert everything to seconds */
......
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