fixup! Fix missing last segment

This commit is contained in:
Zoe Roux 2024-02-11 00:46:53 +01:00
parent c635fc00c3
commit 345eabafb2

View File

@ -137,7 +137,8 @@ func (ts *Stream) run(start int32) error {
"-i", ts.file.Path,
"-copyts",
}
if end != int32(len(ts.file.Keyframes)-1) {
// do not include -to if we want the file to go to the end
if end != int32(len(ts.file.Keyframes)) {
args = append(args,
"-to", fmt.Sprintf("%.6f", ts.file.Keyframes[end]),
)