summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-11 20:37:16 +0100
committerwm4 <wm4@nowhere>2016-01-11 20:37:16 +0100
commit0915a8497b12a7b526e0e8eae322eb8deb31eace (patch)
treeb355d18da6b051a8c8df804779151030ecc9b212 /sub
parent8135838018e0f0822dbec540c427508c44f92fc1 (diff)
downloadmpv-0915a8497b12a7b526e0e8eae322eb8deb31eace.tar.bz2
mpv-0915a8497b12a7b526e0e8eae322eb8deb31eace.tar.xz
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).
Diffstat (limited to 'sub')
-rw-r--r--sub/dec_sub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/dec_sub.c b/sub/dec_sub.c
index 2e4b27f628..c0c98c42cc 100644
--- a/sub/dec_sub.c
+++ b/sub/dec_sub.c
@@ -165,7 +165,7 @@ bool sub_read_packets(struct dec_sub *sub, double video_pts)
// reading.
if (st <= 0) {
r = st < 0 || (sub->last_pkt_pts != MP_NOPTS_VALUE &&
- sub->last_pkt_pts >= video_pts);
+ sub->last_pkt_pts > video_pts);
break;
}