This commit is contained in:
aler9
2022-02-01 19:09:56 +01:00
parent 5cf71f59d8
commit 0c9bd7a575
5 changed files with 35 additions and 5 deletions

View File

@@ -286,6 +286,15 @@ func TestTrackH264NewFromMediaDescription(t *testing.T) {
}
}
func TestTrackH264Clone(t *testing.T) {
track, err := NewTrackH264(96, []byte{0x01, 0x02}, []byte{0x03, 0x04}, []byte{0x05, 0x06})
require.NoError(t, err)
copy := track.clone()
require.NotSame(t, track, copy)
require.Equal(t, track, copy)
}
func TestTrackH264MediaDescription(t *testing.T) {
track, err := NewTrackH264(96,
[]byte{