mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 04:58:06 +00:00
sub: read subtitles until their timestamps are past video
Change >= to >, because if the timestamps are equal, further subtitle packets with the same timestamps could be required (e.g. ASS).
This commit is contained in:
parent
8135838018
commit
0915a8497b
@ -165,7 +165,7 @@ bool sub_read_packets(struct dec_sub *sub, double video_pts)
|
|||||||
// reading.
|
// reading.
|
||||||
if (st <= 0) {
|
if (st <= 0) {
|
||||||
r = st < 0 || (sub->last_pkt_pts != MP_NOPTS_VALUE &&
|
r = st < 0 || (sub->last_pkt_pts != MP_NOPTS_VALUE &&
|
||||||
sub->last_pkt_pts >= video_pts);
|
sub->last_pkt_pts > video_pts);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user