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

dvdnav: Fix chapters time_offset

parent ba61a82a
......@@ -1218,7 +1218,12 @@ static void DemuxTitles( demux_t *p_demux )
{
s = vlc_seekpoint_New();
if( p_chapters_time )
s->i_time_offset = p_chapters_time[j] * 1000 / 90;
{
if ( j > 0 )
s->i_time_offset = p_chapters_time[j - 1] * 1000 / 90;
else
s->i_time_offset = 0;
}
TAB_APPEND( t->i_seekpoint, t->seekpoint, s );
}
free( p_chapters_time );
......
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