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

dvdnav: Fix chapters time_offset

(cherry picked from commit c0bad885)
Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent b4af2be8
......@@ -1209,7 +1209,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