mirror of https://bitbucket.org/ausocean/av.git
mts: Changed uses of NewEncoder in revid and senders_test to use extra argument.
This commit is contained in:
parent
d15d0ddb86
commit
b09a6e210e
|
@ -258,7 +258,7 @@ func (r *Revid) setupPipeline(mtsEnc func(io.Writer, int) io.Writer, flvEnc func
|
||||||
}
|
}
|
||||||
|
|
||||||
func newMtsEncoder(dst io.Writer, fps int) io.Writer {
|
func newMtsEncoder(dst io.Writer, fps int) io.Writer {
|
||||||
e := mts.NewEncoder(dst, float64(fps))
|
e := mts.NewEncoder(dst, float64(fps), mts.Video)
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ func TestMtsSenderSegment(t *testing.T) {
|
||||||
tstSender := &sender{}
|
tstSender := &sender{}
|
||||||
loadSender := newMtsSender(tstSender, log)
|
loadSender := newMtsSender(tstSender, log)
|
||||||
rb := ring.NewBuffer(rbSize, rbElementSize, wTimeout)
|
rb := ring.NewBuffer(rbSize, rbElementSize, wTimeout)
|
||||||
encoder := mts.NewEncoder((*buffer)(rb), 25)
|
encoder := mts.NewEncoder((*buffer)(rb), 25, mts.Video)
|
||||||
|
|
||||||
// Turn time based PSI writing off for encoder.
|
// Turn time based PSI writing off for encoder.
|
||||||
const psiSendCount = 10
|
const psiSendCount = 10
|
||||||
|
@ -201,7 +201,7 @@ func TestMtsSenderDiscontinuity(t *testing.T) {
|
||||||
tstSender := &sender{testDiscontinuities: true, discontinuityAt: clipWithDiscontinuity}
|
tstSender := &sender{testDiscontinuities: true, discontinuityAt: clipWithDiscontinuity}
|
||||||
loadSender := newMtsSender(tstSender, log)
|
loadSender := newMtsSender(tstSender, log)
|
||||||
rb := ring.NewBuffer(rbSize, rbElementSize, wTimeout)
|
rb := ring.NewBuffer(rbSize, rbElementSize, wTimeout)
|
||||||
encoder := mts.NewEncoder((*buffer)(rb), 25)
|
encoder := mts.NewEncoder((*buffer)(rb), 25, mts.Video)
|
||||||
|
|
||||||
// Turn time based PSI writing off for encoder.
|
// Turn time based PSI writing off for encoder.
|
||||||
const psiSendCount = 10
|
const psiSendCount = 10
|
||||||
|
|
Loading…
Reference in New Issue