diff options
author | Dudemanguy <random342@airmail.cc> | 2023-09-06 21:35:22 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-07 09:27:31 -0500 |
commit | b47a58516af2c36e66c3987748b5b4a1275ed9e7 (patch) | |
tree | 89c42b1c7bfe48834482df28bc395aafdbefca70 /sub/sd_ass.c | |
parent | a7185fbb605573b25d74aacb4f3802993bb89a93 (diff) | |
download | mpv-b47a58516af2c36e66c3987748b5b4a1275ed9e7.tar.bz2 mpv-b47a58516af2c36e66c3987748b5b4a1275ed9e7.tar.xz |
sub: add auto option to --sub-fix-timing
Third try is the charm? I stupidly missed that this option already
existed in my previous commits. Instead, add an auto value to it and
enable it by default for sd_lavc but not sd_ass. On my limited samples,
it seems to fix the gaps issue that can occur but without regressing
some duration timings for sub_lavc subtitles. Well hopefully anyway.
Fixes #12327.
Diffstat (limited to 'sub/sd_ass.c')
-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 516553f20b..281feacdb3 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -498,7 +498,7 @@ static long long find_timestamp(struct sd *sd, double pts) long long ts = llrint(pts * 1000); - if (!sd->opts->sub_fix_timing || sd->opts->ass_style_override == 0) + if (sd->opts->sub_fix_timing != 1 || sd->opts->ass_style_override == 0) return ts; // Try to fix small gaps and overlaps. |