[vlc-devel] [PATCH 00/16] mtime_t usage cleaning
Steve Lhomme
robux4 at ycbcr.xyz
Thu Jun 7 11:59:44 CEST 2018
Along with the rework on the clock we want to have more accurate timestamps and
hopefully being able to remux files and keep the timestamps exactly as in the
source file. To do that we need cleaner handling of all the mtime_t accesses.
This pathset adds:
- macros to convert milliseconds/seconds to/from mtime_t
- a type for MS 100ns resolutions and conversion macros
- an example of code cleaning with the ASF demuxer which had a few bogus
conversions.
RĂ©mi Denis-Courmont (1):
vlc_common: add helper function to convert milliseconds to/from
mtime_t
Steve Lhomme (15):
common: make sure the conversion to mtime_t is in mtime_t
common: add helper macros to convert to/from seconds/mtime_t
explicitly
common: add msftime_t to express 100ns time
demux:asf: express CHUNK in mtime_t
demux:asf: use MTIME_TO_SEC() to log seconds
demux:asf: fix incorrect conversion i_time_offset in DemuxPayload()
demux:asf: i_index_entry_time_interval is an msftime_t
demux:asf: i_play_duration/i_send_duration are msftime_t
demux:asf: i_average_time_per_frame is an msftime_t
demux:asf: make sure the length cannot be negative
demux:asf: store the send_time as an mtime_t rather than milliseconds
demux:asf: the preroll start is in mtime_t
demux:asf: fix the i_preroll_start substracting milliseconds from an
mtime
demux:asf: handle the i_pkt_time in mtime_t instead of milliseconds
demux:asf: handle the i_pkt_time_delta in mtime_t instead of
milliseconds
include/vlc_common.h | 14 +++++++++++++
modules/demux/asf/asf.c | 38 ++++++++++++++++++-----------------
modules/demux/asf/asfpacket.c | 30 +++++++++++++--------------
modules/demux/asf/asfpacket.h | 4 ++--
modules/demux/asf/libasf.c | 2 +-
modules/demux/asf/libasf.h | 12 +++++------
modules/demux/mp4/mp4.c | 4 ++--
7 files changed, 59 insertions(+), 45 deletions(-)
--
2.17.0
More information about the vlc-devel
mailing list