mirror of https://github.com/mpv-player/mpv
748504de52
LRC subtitles can have lines with multiple timestamps, e.g. [00:00.00][00:02.00]foo [00:01.00]bar Currently mpv shows only the "foo" that was decoded first, because it compares the packet file position to check if a packet was already seen, and it is the same for both occurrences of "foo". Fix this by also comparing the pts. This keeps comparing the packet position on top of the pts to not break subtitle lines with the same timestamp, like: 1 00:00:00,000 --> 00:00:01,000 foo 2 00:00:00,000 --> 00:00:01,000 bar where mpv shows both lines on top of each other. They are common in ASS subtitles. Fixes https://github.com/mpv-player/mpv/issues/13497. |
||
---|---|---|
.. | ||
ass_mp.c | ||
ass_mp.h | ||
dec_sub.c | ||
dec_sub.h | ||
draw_bmp.c | ||
draw_bmp.h | ||
filter_jsre.c | ||
filter_regex.c | ||
filter_sdh.c | ||
img_convert.c | ||
img_convert.h | ||
lavc_conv.c | ||
meson.build | ||
osd.c | ||
osd.h | ||
osd_font.otf | ||
osd_libass.c | ||
osd_state.h | ||
sd.h | ||
sd_ass.c | ||
sd_lavc.c |