From a54f6717c2a27be104c70a8e3dca6ac9eda1ba31 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 2 Apr 2016 17:32:05 +0200 Subject: 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. --- sub/sd_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sub/sd_lavc.c') 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; -- cgit v1.2.3