Update tests to tolerate mp3/mp3float.
parent
a4e70df617
commit
4187d0dfda
|
@ -28,7 +28,7 @@ func Test_Demux(t *testing.T) {
|
||||||
So(audioStream, ShouldBeNil)
|
So(audioStream, ShouldBeNil)
|
||||||
So(stream.StreamId, ShouldEqual, 0)
|
So(stream.StreamId, ShouldEqual, 0)
|
||||||
So(stream.Pts, 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)
|
So(stream.CodecInfo.Type, ShouldEqual, Audio)
|
||||||
audioStream = stream
|
audioStream = stream
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ func Test_Muxer(t *testing.T) {
|
||||||
So(audioStream, ShouldBeNil)
|
So(audioStream, ShouldBeNil)
|
||||||
So(stream.StreamId, ShouldEqual, 0)
|
So(stream.StreamId, ShouldEqual, 0)
|
||||||
So(stream.Pts, 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)
|
So(stream.CodecInfo.Type, ShouldEqual, Audio)
|
||||||
audioStream = stream
|
audioStream = stream
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue