SIGN IN SIGN UP

options: add secondary-sub-delay

Add --secondary-sub-delay option and decouple --sub-delay from secondary
subtitles. This produces desirable behavior in most cases as secondary
and primary subtitles tracks tend to be timed independently of one
another.

This feature is implemented by turning the sub_delay field in
mp_subtitle_opts into an array of 2 floats. From here the track index is
either passed around or derived when sub_delay is needed. There are some
cases in dec_sub.c where it is possible for dec_sub.order (equivalent to
track index) to be -1. In these cases, sub_delay is inferred as 0.
R
Ripose committed
dea512ea38605b6e203e98c1684f819e4aa465f1
Parent: a3f505d
Committed by sfan5 <sfan5@live.de> on 11/26/2023, 10:22:05 PM