diff --git a/app/media/demuxer_test.go b/app/media/demuxer_test.go index 0c1bb91..9e60569 100644 --- a/app/media/demuxer_test.go +++ b/app/media/demuxer_test.go @@ -28,7 +28,7 @@ func Test_Demux(t *testing.T) { So(audioStream, ShouldBeNil) So(stream.StreamId, ShouldEqual, 0) So(stream.Pts, ShouldEqual, 0) - So(stream.CodecInfo.CodecName, ShouldEqual, "mp3") + So(stream.CodecInfo.CodecName, ShouldBeIn, []string{"mp3", "mp3float"}) So(stream.CodecInfo.Type, ShouldEqual, Audio) audioStream = stream } diff --git a/app/media/muxer_test.go b/app/media/muxer_test.go index 39c0f02..c9d9b78 100644 --- a/app/media/muxer_test.go +++ b/app/media/muxer_test.go @@ -27,7 +27,7 @@ func Test_Muxer(t *testing.T) { So(audioStream, ShouldBeNil) So(stream.StreamId, ShouldEqual, 0) So(stream.Pts, ShouldEqual, 0) - So(stream.CodecInfo.CodecName, ShouldEqual, "mp3") + So(stream.CodecInfo.CodecName, ShouldBeIn, []string{"mp3", "mp3float"}) So(stream.CodecInfo.Type, ShouldEqual, Audio) audioStream = stream }