From 7cf449b5c9944bbc5323632f33a5a8d743e2668e Mon Sep 17 00:00:00 2001 From: Trek H Date: Fri, 14 Aug 2020 12:34:20 +0930 Subject: [PATCH] revid: simplify --- revid/revid.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/revid/revid.go b/revid/revid.go index 23f8cd68..1952f889 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -459,11 +459,9 @@ func (r *Revid) Start() error { // between recording periods for audio. d := time.Duration(0) if r.cfg.Input == config.InputAudio { - if r.cfg.RecPeriod != 0 { d = time.Duration(r.cfg.RecPeriod * float64(time.Second)) } - } else { - if r.cfg.FileFPS != 0 { + } else if r.cfg.FileFPS != 0 { d = time.Duration(1000/r.cfg.FileFPS) * time.Millisecond } }