Commit 67215fdc authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Stupid subtitles with their lack of proper specifications and implementations.....

parent a20eb781
...@@ -602,7 +602,7 @@ static int ParseVobSubIDX( demux_t *p_demux ) ...@@ -602,7 +602,7 @@ static int ParseVobSubIDX( demux_t *p_demux )
current_sub->i_vobsub_location = i_location; current_sub->i_vobsub_location = i_location;
} }
} }
else if( !strncmp( line, "Delay:", 6 ) ) else if( !strncasecmp( line, "delay:", 6 ) )
{ {
/* /*
* delay: [sign]hh:mm:ss:mss * delay: [sign]hh:mm:ss:mss
...@@ -613,7 +613,7 @@ static int ParseVobSubIDX( demux_t *p_demux ) ...@@ -613,7 +613,7 @@ static int ParseVobSubIDX( demux_t *p_demux )
vobsub_track_t *current_tk = &p_sys->track[p_sys->i_tracks - 1]; vobsub_track_t *current_tk = &p_sys->track[p_sys->i_tracks - 1];
if( sscanf( line, "Delay: %d%n:%d:%d:%d", if( sscanf( line, "%*celay: %d%n:%d:%d:%d",
&h, &count, &m, &s, &ms ) >= 4 ) &h, &count, &m, &s, &ms ) >= 4 )
{ {
if( line[count-3] == '-' ) if( line[count-3] == '-' )
......
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