diff options
author | Guido Cella <guido@guidocella.xyz> | 2024-02-18 08:23:08 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2024-02-25 14:30:07 +0100 |
commit | 748504de520fc450fb8e73f3bdc663650fa864bf (patch) | |
tree | 7a9845be4fb12a698a75bc326a0cec17ebb784ed /DOCS/man/options.rst | |
parent | a0447a370ed4bcd87df28a580fe60bd57603cde4 (diff) | |
download | mpv-748504de520fc450fb8e73f3bdc663650fa864bf.tar.bz2 mpv-748504de520fc450fb8e73f3bdc663650fa864bf.tar.xz |
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.
Diffstat (limited to 'DOCS/man/options.rst')
0 files changed, 0 insertions, 0 deletions