mirror of https://bitbucket.org/ausocean/av.git
revid: removed revid's overwnship of rtp encoder
This commit is contained in:
parent
92294aed70
commit
4f4bebae25
|
@ -113,7 +113,6 @@ type Revid struct {
|
|||
// lexTo, encoder and packer handle transcoding the input stream.
|
||||
lexTo func(dst stream.Encoder, src io.Reader, delay time.Duration) error
|
||||
encoder stream.Encoder
|
||||
encoder2 *rtp.Encoder
|
||||
packer packer
|
||||
// buffer handles passing frames from the transcoder
|
||||
// to the target destination.
|
||||
|
@ -282,8 +281,7 @@ func (r *Revid) reset(config Config) error {
|
|||
case MpegtsRtp:
|
||||
r.config.Logger.Log(smartlogger.Info, pkg+"using RTP packetisation")
|
||||
frameRate, _ := strconv.Atoi(r.config.FrameRate)
|
||||
r.encoder2 = rtp.NewEncoder(&r.packer, frameRate)
|
||||
r.encoder = mts.NewEncoder(r.encoder2, float64(frameRate))
|
||||
r.encoder = mts.NewEncoder(rtp.NewEncoder(&r.packer, frameRate), float64(frameRate))
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue