mirror of https://bitbucket.org/ausocean/av.git
revid: consider when r.cfg.FileFPS ==0
This commit is contained in:
parent
89ca5d6052
commit
cfd3f0fc3c
|
@ -428,8 +428,11 @@ func (r *Revid) Start() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate delay between frames based on InputFPS.
|
// Calculate delay between frames based on FileFPS.
|
||||||
d := time.Duration(1000/r.cfg.FileFPS) * time.Millisecond
|
d := time.Duration(0)
|
||||||
|
if r.cfg.FileFPS != 0 {
|
||||||
|
d = time.Duration(1000/r.cfg.FileFPS) * time.Millisecond
|
||||||
|
}
|
||||||
|
|
||||||
r.wg.Add(1)
|
r.wg.Add(1)
|
||||||
go r.processFrom(r.input, d)
|
go r.processFrom(r.input, d)
|
||||||
|
|
Loading…
Reference in New Issue