diff options
-rw-r--r-- | sub/sd_lavc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c index 50d3f2bceb..ce20ddba2c 100644 --- a/sub/sd_lavc.c +++ b/sub/sd_lavc.c @@ -398,8 +398,7 @@ static struct sub *get_current(struct sd_lavc_priv *priv, double pts) if (!sub->valid) continue; if (pts == MP_NOPTS_VALUE || - ((sub->pts == MP_NOPTS_VALUE || pts + 1e-6 >= sub->pts) && - (sub->endpts == MP_NOPTS_VALUE || pts < sub->endpts))) + (sub->pts == MP_NOPTS_VALUE || pts + 1e-6 >= sub->pts)) { // Ignore "trailing" subtitles with unknown length after 1 minute. if (sub->endpts == MP_NOPTS_VALUE && pts >= sub->pts + 60) |