diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-01-01 18:42:52 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-01-01 19:17:51 +0200 |
commit | 52126e574c7872ca95e7974cfe5445421b74f24c (patch) | |
tree | 77a6979297fa8e3729668657ad001b61a4da650b /etc/dvb-menu.conf | |
parent | 3ad06dd7d2fb381670a741c769401501c10aacc8 (diff) | |
download | mpv-52126e574c7872ca95e7974cfe5445421b74f24c.tar.bz2 mpv-52126e574c7872ca95e7974cfe5445421b74f24c.tar.xz |
demux_mkv: improve seeking with generated index
When using generated index (-idx / -forceidx) the Matroska seeking
code first guessed a file position using bitrate-based heuristics,
then located the cluster nearest to that file position. Change it to
store cluster timestamps in addition to file positions and seek to the
cluster with the closest timestamp. This makes seeking with -idx a lot
more accurate.
This change also fixes a crash when trying to seek with generated
index before playing any data from the beginning of the file (could be
triggered by -idx together with ordered chapters or -ss for example).
I removed the code handling MATROSKA_ID_CUES in the middle of parsing
clusters. Such cue entries were not consistently handled if
encountered during playback instead of index creation and the seek
code was also buggy when they were encountered and parsed; i didn't
consider it worth the effort to fix it.
Diffstat (limited to 'etc/dvb-menu.conf')
0 files changed, 0 insertions, 0 deletions