Commit 81f96b13 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>
(cherry picked from commit ce01d1fc4db418d39880bbb6300eeb5bbcd7ba65)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5f166b88
......@@ -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