diff options
author | wm4 <wm4@nowhere> | 2013-08-14 13:23:37 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-15 23:43:36 +0200 |
commit | da76eb9f14dcb7a361dd817aa3d18c4c319b432a (patch) | |
tree | 12f496ab0396f2a3fd96de36c39ff07dfb392be5 /demux/ebml.h | |
parent | df6901b65315b4c75e7e18ce00049706c076e2fb (diff) | |
download | mpv-da76eb9f14dcb7a361dd817aa3d18c4c319b432a.tar.bz2 mpv-da76eb9f14dcb7a361dd817aa3d18c4c319b432a.tar.xz |
sub: fix accidental subtitle overlaps
The fix_overlaps_and_gaps() function in dec_sub.c fixes small gaps or
overlaps between subtitle events. However, sometimes it could happen
that the corrected subtitle events could overlap by 1ms due to bad
rounding, making libass shift subtitles to reduce collisions. (The
second subtitle will be shown above the previous one, even if both
subtitles are visible only for 1ms.)
sd_ass.c rounds the timestamps when converting to integers for unknown
reasons. I think it would work fine without that rounding, but since
I have no clue why it rounds, and since it could be needed to ensure
correct timestamps with ASS subtitles demuxed from Matroska, I'd rather
not touch it. So the solution is to use already rounded timestamps to
calculate the new subtitle duration in fix_overlaps_and_gaps().
See github issue #182.
Diffstat (limited to 'demux/ebml.h')
0 files changed, 0 insertions, 0 deletions