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

Add title time in playback menus for MP4

Ref #4030
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c52cfdd0
......@@ -1161,6 +1161,13 @@ static void LoadChapter( demux_t *p_demux )
}
}
}
/* Add duration if titles are enabled */
if( p_sys->p_title )
{
p_sys->p_title->i_length = (uint64_t)1000000 *
(uint64_t)p_sys->i_duration / (uint64_t)p_sys->i_timescale;
}
}
/* now create basic chunk data, the rest will be filled by MP4_CreateSamplesIndex */
......
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