From cfd3f0fc3c62d961ac906fe81f789717dd1e8a68 Mon Sep 17 00:00:00 2001 From: Saxon Date: Sat, 25 Jan 2020 10:15:27 +1030 Subject: [PATCH] revid: consider when r.cfg.FileFPS ==0 --- revid/revid.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/revid/revid.go b/revid/revid.go index aa94daf0..94bd4a6f 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -428,8 +428,11 @@ func (r *Revid) Start() error { return err } - // Calculate delay between frames based on InputFPS. - d := time.Duration(1000/r.cfg.FileFPS) * time.Millisecond + // Calculate delay between frames based on FileFPS. + d := time.Duration(0) + if r.cfg.FileFPS != 0 { + d = time.Duration(1000/r.cfg.FileFPS) * time.Millisecond + } r.wg.Add(1) go r.processFrom(r.input, d)