From 909908260971628e809c5ae9115e8b36b0b1bfc6 Mon Sep 17 00:00:00 2001 From: Trek H Date: Wed, 8 May 2019 19:05:00 +0930 Subject: [PATCH] revid: setting up mts encoder with pid based on media type --- revid/revid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revid/revid.go b/revid/revid.go index e02b9404..965ae546 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -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) {