summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-11 19:36:03 +0100
committerwm4 <wm4@nowhere>2014-11-11 19:36:03 +0100
commitc827ae5f3603378b291d0575920e0cf87f5d0bfe (patch)
treef2e709bb55037c77c183553f8a78ed5fb3ecad68 /sub
parent481ab94c4e16da53def1b4329b8e2883f40fae8e (diff)
downloadmpv-c827ae5f3603378b291d0575920e0cf87f5d0bfe.tar.bz2
mpv-c827ae5f3603378b291d0575920e0cf87f5d0bfe.tar.xz
demux_mkv: adjust subtitle preroll again
Revert commit 24e52f66; even though the old beheavior doesn't make sense (as the commit message assured), it turns out that this works better: typically, it means preroll will start from the previous video key frame (the video CUE index will contain clusters with video key frames only), which often coincides with subtitle changes. Thus the old behavior is actually better. Change the code that uses CueDuration elements. Instead of merely checking whether preroll should be done, find the first cluster that needs to be read to get all subtitle packets. (The intention is to compensate for the enlarged preroll cluster-range due to reverting commit 24e52f66.)
Diffstat (limited to 'sub')
0 files changed, 0 insertions, 0 deletions