mirror of https://bitbucket.org/ausocean/av.git
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:
commit
8fa9f7df48
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue