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 } }