1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-30 15:29:56 +00:00
mpv/sub
wm4 04934e86dd 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.
2015-12-05 23:56:07 +01:00
..
ass_mp.c sub: remove unused function, move another one 2015-11-29 17:55:02 +01:00
ass_mp.h sub: remove unused function, move another one 2015-11-29 17:55:02 +01:00
dec_sub.c sub: move --sub-fix-timing handling to renderer 2015-12-05 23:56:07 +01:00
dec_sub.h sub: allow feeding bitmap subs in advance 2015-12-05 23:54:00 +01:00
draw_bmp.c Update license headers 2015-04-13 12:10:01 +02:00
draw_bmp.h csputils: get rid of mp_csp_details 2015-01-06 16:50:58 +01:00
img_convert.c Update license headers 2015-04-13 12:10:01 +02:00
img_convert.h
osd_dummy.c Add some missing "const"s 2014-10-10 13:44:08 +02:00
osd_font.otf osd+osc: Add left-arrow to osd-font 2014-08-21 18:45:41 +02:00
osd_libass.c osd: fix and cleanup font style management 2015-11-29 17:55:02 +01:00
osd_state.h osd: use the same ASS_Renderer for OSD text and progbar 2015-11-28 19:24:31 +01:00
osd.c osd: use the same ASS_Renderer for OSD text and progbar 2015-11-28 19:24:31 +01:00
osd.h osd: use the same ASS_Renderer for OSD text and progbar 2015-11-28 19:24:31 +01:00
sd_ass.c sub: move --sub-fix-timing handling to renderer 2015-12-05 23:56:07 +01:00
sd_lavc_conv.c Replace deprecated av_free_packet() calls 2015-10-28 23:48:56 +01:00
sd_lavc.c sd_lavc: remove small gaps between subtitles 2015-12-05 23:55:56 +01:00
sd_lavf_srt.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
sd_microdvd.c Update license headers 2015-04-13 12:10:01 +02:00
sd_movtext.c
sd_srt.c Update license headers 2015-04-13 12:10:01 +02:00
sd.h sd_lavc: remove small gaps between subtitles 2015-12-05 23:55:56 +01:00