diff options
author | Guido Cella <guido@guidocella.xyz> | 2023-10-05 21:05:08 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-10-06 16:35:55 +0200 |
commit | 185fa9ffc69709d5ab792faa2a97808741b37a3d (patch) | |
tree | db0d60c011c166fb972a2900a4c50a8fd4400b07 | |
parent | 07995f5d5fa38f9060c6bbfd0e51bbfc39b3e236 (diff) | |
download | mpv-185fa9ffc69709d5ab792faa2a97808741b37a3d.tar.bz2 mpv-185fa9ffc69709d5ab792faa2a97808741b37a3d.tar.xz |
sd_ass: enable sub-start and sub-end with unknown duration subs
The function called to get sub-start and sub-end returns early when the
subtitle's duration is unknown, but by just removing this check the
properties work fine. The final sub line has a very large sub-end, but
that is much better than not having the properties work at all.
-rw-r--r-- | sub/sd_ass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/sd_ass.c b/sub/sd_ass.c index 55f0d09edb..2b41214153 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -748,7 +748,7 @@ static struct sd_times get_times(struct sd *sd, double pts) ASS_Track *track = ctx->ass_track; struct sd_times res = { .start = MP_NOPTS_VALUE, .end = MP_NOPTS_VALUE }; - if (pts == MP_NOPTS_VALUE || ctx->duration_unknown) + if (pts == MP_NOPTS_VALUE) return res; long long ipts = find_timestamp(sd, pts); |