mpv/sub
Guido Cella 748504de52 sub: fix LRC lines with multiple timestamps
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.
2024-02-25 14:30:07 +01:00
..
ass_mp.c
ass_mp.h
dec_sub.c player/sub: attempt to detect animated subtitles 2024-02-15 16:43:11 +00:00
dec_sub.h player/sub: avoid wasteful subtitle redraws 2024-02-15 16:43:11 +00:00
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 command: fix sub-seek while paused without a video 2024-02-23 21:37:22 +01:00
sd_ass.c sub: fix LRC lines with multiple timestamps 2024-02-25 14:30:07 +01:00
sd_lavc.c player/sub: avoid wasteful subtitle redraws 2024-02-15 16:43:11 +00:00