1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-12 01:49:33 +00:00

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.
This commit is contained in:
wm4 2016-04-02 17:32:05 +02:00
parent 64791a0832
commit a54f6717c2

View File

@ -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;