revid: setting up mts encoder with pid based on media type

This commit is contained in:
Trek H 2019-05-08 19:05:00 +09:30
parent 76765c8a20
commit 9099082609
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ func (r *Revid) reset(config Config) error {
err = r.setupPipeline(
func(dst io.WriteCloser, fps, medType int) (io.WriteCloser, error) {
e := mts.NewEncoder(dst, float64(fps), mts.Video)
e := mts.NewEncoder(dst, float64(fps), medType)
return e, nil
},
func(dst io.WriteCloser, fps int) (io.WriteCloser, error) {