summaryrefslogtreecommitdiffstats
path: root/sub/sd_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-02 17:32:05 +0200
committerwm4 <wm4@nowhere>2016-04-02 17:32:05 +0200
commita54f6717c2a27be104c70a8e3dca6ac9eda1ba31 (patch)
tree4d13dbde5f99b4d1c764d73d8c1a9851ad3ed413 /sub/sd_lavc.c
parent64791a08323f392ace49228b6794d442a41fd71b (diff)
downloadmpv-a54f6717c2a27be104c70a8e3dca6ac9eda1ba31.tar.bz2
mpv-a54f6717c2a27be104c70a8e3dca6ac9eda1ba31.tar.xz
sd_lavc: fix subtitle display with unknown end timestamps
This is a theoretical issue, because subtitle end timestamps for all but the current subtitle are always known.
Diffstat (limited to 'sub/sd_lavc.c')
-rw-r--r--sub/sd_lavc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c
index 4fbabaf864..74d19f8369 100644
--- a/sub/sd_lavc.c
+++ b/sub/sd_lavc.c
@@ -284,7 +284,7 @@ static void get_bitmaps(struct sd *sd, struct mp_osd_res d, double pts,
priv->current_pts = pts;
struct sub *current = NULL;
- for (int n = MAX_QUEUE - 1; n >= 0; n--) {
+ for (int n = 0; n < MAX_QUEUE; n++) {
struct sub *sub = &priv->subs[n];
if (!sub->valid)
continue;