summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-16 16:49:23 +0200
committerwm4 <wm4@nowhere>2015-10-16 17:11:44 +0200
commit76bfd5b4a237dda8f4ec5c05315bf566421f7908 (patch)
tree37ecccf2a9a43c2ade501d83dbae7ccf0fe60422 /wscript
parent8d414e2fe7f79f1bbf9158e8aa034e9ac9cf2222 (diff)
downloadmpv-76bfd5b4a237dda8f4ec5c05315bf566421f7908.tar.bz2
mpv-76bfd5b4a237dda8f4ec5c05315bf566421f7908.tar.xz
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.)
Diffstat (limited to 'wscript')
0 files changed, 0 insertions, 0 deletions