1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-16 20:05:07 +00:00
mpv/demux
wm4 76bfd5b4a2 demux_mkv: probe start time
MKV files can very well start with timestamps other than 0. While mpv
has support for such files in general, and demux_lavf enables this
feature, demux_mkv didn't export a start time.

Implement this by simply reading the first cluster timestamp. This in
turn is done by reading 1 block. While we don't need the block for this
prupose at all, it's the easiest way to get the cluster timestamp read
correctly without code duplication. In theory this could be wrong, and
a packet could start at a much later time, but in practice this won't
happen.

This commit also adds an option to disable this feature. It's not
documented because nobody should use it. (But I happen to have a need
for this.)
2015-10-16 17:11:44 +02:00
..
codec_tags.c demux: mime types are case-insensitive 2015-06-21 18:21:21 +02:00
codec_tags.h demux_mkv: support embedded coverart 2014-12-22 12:53:51 +01:00
cue.c cue: read more metadata 2015-10-01 21:57:35 +02:00
cue.h cue: read more metadata 2015-10-01 21:57:35 +02:00
demux_cue.c cue: read more metadata 2015-10-01 21:57:35 +02:00
demux_disc.c player: remove higher-level remains of DVD/BD menu support 2015-08-03 23:49:14 +02:00
demux_edl.c demux: remove redundant demux_chapter.name field 2015-08-12 11:11:23 +02:00
demux_lavf.c Take care of libavcodec convergence_duration deprecation 2015-09-29 18:43:28 +02:00
demux_libarchive.c demux_libarchive: don't allow probing to read unlimited data 2015-08-24 22:26:07 +02:00
demux_libass.c demux: merge extradata fields 2015-06-21 18:06:14 +02:00
demux_mf.c Update license headers 2015-04-13 12:10:01 +02:00
demux_mkv_timeline.c demux: remove redundant demux_chapter.name field 2015-08-12 11:11:23 +02:00
demux_mkv.c demux_mkv: probe start time 2015-10-16 17:11:44 +02:00
demux_playlist.c player: warn against using HLS URLs with --playlist 2015-08-04 17:51:00 +02:00
demux_rar.c demux: fix rar support for files containing DTS audio tracks 2015-03-24 21:29:09 +01:00
demux_raw.c demux: rename sh_stream.format to sh_stream.codec_tag 2015-06-21 16:56:35 +02:00
demux_subreader.c demux_subreader: participate in probing only on Libav 2015-10-08 19:59:49 +02:00
demux_tv.c demux: rename sh_stream.format to sh_stream.codec_tag 2015-06-21 16:56:35 +02:00
demux.c demux: don't attempt to open a demuxer after abort signal was given 2015-10-06 18:19:20 +02:00
demux.h demux: remove redundant demux_chapter.name field 2015-08-12 11:11:23 +02:00
ebml.c ebml: warn if an EBML has unknown length 2015-09-03 13:39:00 +02:00
ebml.h Update license headers 2015-04-13 12:10:01 +02:00
matroska.h demux_mkv: remove indirection through defines 2015-06-19 21:41:57 +02:00
packet.c demux_mkv: refactor packet parsing 2015-02-05 21:52:07 +01:00
packet.h Update license headers 2015-04-13 12:10:01 +02:00
stheader.h demux: export forced flag 2015-06-27 22:02:24 +02:00
timeline.c demux: timeline: honor quit requests 2015-02-20 22:08:02 +01:00
timeline.h demux: timeline: honor quit requests 2015-02-20 22:08:02 +01:00