diff --git a/container/mts/audio_test.go b/container/mts/audio_test.go index 9c1b8f03..8f71bbb7 100644 --- a/container/mts/audio_test.go +++ b/container/mts/audio_test.go @@ -38,7 +38,7 @@ import ( type buffer bytes.Buffer func (b *buffer) Write(d []byte) (int, error) { - return b.Write(d) + return (*bytes.Buffer)(b).Write(d) } func (b *buffer) Close() error { return nil } diff --git a/protocol/rtmp/rtmp_test.go b/protocol/rtmp/rtmp_test.go index f2d661c5..1cf056cb 100644 --- a/protocol/rtmp/rtmp_test.go +++ b/protocol/rtmp/rtmp_test.go @@ -222,6 +222,8 @@ func (rs *rtmpSender) Write(p []byte) (int, error) { return n, nil } +func (rs *rtmpSender) Close() error { return nil } + // TestFromFile tests streaming from an video file comprising raw H.264. // The test file is supplied via the RTMP_TEST_FILE environment variable. func TestFromFile(t *testing.T) {