Merged in revid-crash-file-input (pull request #294)

Revid crash on file input fixed

Approved-by: Saxon Milton <saxon.milton@gmail.com>
This commit is contained in:
Scott Barnard 2019-12-04 07:16:16 +00:00 committed by Saxon Milton
commit 8fa9f7df48
1 changed files with 6 additions and 0 deletions

View File

@ -346,6 +346,12 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io.
case config.InputFile:
r.input = file.New()
switch r.cfg.InputCodec {
case codecutil.H264:
r.lexTo = h264.Lex
case codecutil.MJPEG:
r.lexTo = mjpeg.Lex
}
case config.InputRTSP:
r.input = geovision.New(r.cfg.Logger)