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:
parent
64791a0832
commit
a54f6717c2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user