mirror of
https://github.com/mpv-player/mpv
synced 2024-12-13 10:26:00 +00:00
da76eb9f14
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. |
||
---|---|---|
.. | ||
ass_mp.c | ||
ass_mp.h | ||
dec_sub.c | ||
dec_sub.h | ||
draw_bmp.c | ||
draw_bmp.h | ||
find_subfiles.c | ||
find_subfiles.h | ||
img_convert.c | ||
img_convert.h | ||
osd_dummy.c | ||
osd_font.otf | ||
osd_libass.c | ||
sd_ass.c | ||
sd_lavc_conv.c | ||
sd_lavc.c | ||
sd_lavf_srt.c | ||
sd_microdvd.c | ||
sd_movtext.c | ||
sd_spu.c | ||
sd_srt.c | ||
sd.h | ||
spudec.c | ||
spudec.h | ||
sub.c | ||
sub.h |