Browse Source

Add title time in playback menus for MP4

Ref #4030

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
pull/2/head
Edward Wang 15 years ago
committed by Jean-Baptiste Kempf
parent
commit
ce01d1fc4d
  1. 7
      modules/demux/mp4/mp4.c

7
modules/demux/mp4/mp4.c

@ -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 */

Loading…
Cancel
Save