Merge pull request #360 from corrscope/fix-short-channel

Use longest channel for video duration, not first channel
pull/361/head
nyanpasu64 2020-11-09 21:37:12 -08:00 zatwierdzone przez GitHub
commit f78bb5d28a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -9,6 +9,7 @@
- Add menu items linking to config folder and Github repository (#343)
- Fix FFmpeg URL, switch to static FFmpeg to reduce user error (#332, #358)
- Fix bug where videos were truncated if first channel was shorter than the rest (#360)
## 0.6.1

Wyświetl plik

@ -237,7 +237,9 @@ class CorrScope:
begin_frame = round(fps * self.cfg.begin_time)
end_time = coalesce(self.cfg.end_time, self.render_waves[0].get_s())
end_time = coalesce(
self.cfg.end_time, max(wave.get_s() for wave in self.render_waves)
)
end_frame = fps * end_time
end_frame = int(end_frame) + 1