diff options
author | wm4 <wm4@nowhere> | 2017-11-10 08:57:37 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-11-10 08:57:37 +0100 |
commit | ed1af997270fa10722e6a0f8f07f0ffb61bd3e09 (patch) | |
tree | 47a6ce91f8f6217f95a2b1c42c89b7798e978b3a /bootstrap.py | |
parent | 7c1e7468e63bf87830e98804001e8d42500998e2 (diff) |
demux: attempt to accurately reflect seek range with muxed subtitles
If subtitles are part of the stream, determining the seekable range
becomes harder. Subtitles are sparse, and can have packets in irregular
intervals, or even completely lack packets. The usual logic of computing
the seek range by the min/max packet timestamps fails.
Solve this by making the only assumption we can make: subtitle packets
are implicitly demuxed along with other packets. We also assume perfect
interleaving for this, but you really can't do anything with sparse
packets that makes sense without this assumption.
One special case is if we prune sparse packets within the current
seekable range. Obviously this should limit the seekable range to after
the pruned packet.
Diffstat (limited to 'bootstrap.py')
0 files changed, 0 insertions, 0 deletions