Commit e463dc2a authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

Support duration in avformat demuxer

Ref #4030
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit dbd65161)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f99cc707
......@@ -478,7 +478,11 @@ int OpenDemux( vlc_object_t *p_this )
p_sys->ic->duration * 1000000 / AV_TIME_BASE : -1 );
if( p_sys->ic->nb_chapters > 0 )
{
p_sys->p_title = vlc_input_title_New();
p_sys->p_title->i_length = p_sys->ic->duration * 1000000 / AV_TIME_BASE;
}
for( i = 0; i < p_sys->ic->nb_chapters; i++ )
{
seekpoint_t *s = vlc_seekpoint_New();
......
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