diff options
author | wm4 <wm4@nowhere> | 2016-04-02 17:32:05 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-04-02 17:32:05 +0200 |
commit | a54f6717c2a27be104c70a8e3dca6ac9eda1ba31 (patch) | |
tree | 4d13dbde5f99b4d1c764d73d8c1a9851ad3ed413 | |
parent | 64791a08323f392ace49228b6794d442a41fd71b (diff) |
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.
-rw-r--r-- | sub/sd_lavc.c | 2 |
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; |