From 5ad8a6ed2d9953cd1fe0b95cac3659053dec479a Mon Sep 17 00:00:00 2001 From: Trek H Date: Fri, 14 Aug 2020 13:07:03 +0930 Subject: [PATCH] revid: update encder test to use Rate() with float argument --- container/mts/encoder_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/mts/encoder_test.go b/container/mts/encoder_test.go index fb32ac24..3c9c5dd5 100644 --- a/container/mts/encoder_test.go +++ b/container/mts/encoder_test.go @@ -191,7 +191,7 @@ func TestEncodePcm(t *testing.T) { sampleSize := 2 blockSize := 16000 writeFreq := float64(sampleRate*sampleSize) / float64(blockSize) - e, err := NewEncoder(nopCloser{&buf}, (*testLogger)(t), PacketBasedPSI(10), Rate(int(writeFreq)), MediaType(EncodeAudio)) + e, err := NewEncoder(nopCloser{&buf}, (*testLogger)(t), PacketBasedPSI(10), Rate(writeFreq), MediaType(EncodeAudio)) if err != nil { t.Fatalf("could not create MTS encoder, failed with error: %v", err) }