summaryrefslogtreecommitdiffstats
path: root/sub/sd.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-05 23:56:07 +0100
committerwm4 <wm4@nowhere>2015-12-05 23:56:07 +0100
commit04934e86dd154d1824253ba468c8f76eadc3076a (patch)
treef6b245f0951e72e35a61934e0a6d43aaaee88d30 /sub/sd.h
parentff1eaea3e7f9ac2ab45b298326b96d256f487dc3 (diff)
downloadmpv-04934e86dd154d1824253ba468c8f76eadc3076a.tar.bz2
mpv-04934e86dd154d1824253ba468c8f76eadc3076a.tar.xz
sub: move --sub-fix-timing handling to renderer
Instead of messing with the subtitle packet timestamps, do it on output. We work on the libass event list. If there is an unwanted gap or overlap, we render the timestamp at another position where there is no gap or overlap. This is somewhat more robust, and even works with demuxed subs (to some degree - depends whether the subs are prefected soon enough). It's active even for native ASS subs. I wonder if this is a problem with extended type setting. If it is, the heuristic that tries to avoid interrupting such cases has to be improved. While it probably would be ideal to do this after the subtitle decoder, certain aspects are at least currently handled better in this place.
Diffstat (limited to 'sub/sd.h')
0 files changed, 0 insertions, 0 deletions