mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
use random UUIDs as media IDs (#163)
* remove Medias.Clone(), Media.Clone(), Format.Clone() * server: use random UUIDs as media IDs * client: use random UUIDs as media IDs
This commit is contained in:
@@ -27,24 +27,6 @@ func TestMPEG4AudioAttributes(t *testing.T) {
|
||||
require.Equal(t, true, format.PTSEqualsDTS(&rtp.Packet{}))
|
||||
}
|
||||
|
||||
func TestMPEG4AudioClone(t *testing.T) {
|
||||
format := &MPEG4Audio{
|
||||
PayloadTyp: 96,
|
||||
Config: &mpeg4audio.Config{
|
||||
Type: mpeg4audio.ObjectTypeAACLC,
|
||||
SampleRate: 48000,
|
||||
ChannelCount: 2,
|
||||
},
|
||||
SizeLength: 13,
|
||||
IndexLength: 3,
|
||||
IndexDeltaLength: 3,
|
||||
}
|
||||
|
||||
clone := format.Clone()
|
||||
require.NotSame(t, format, clone)
|
||||
require.Equal(t, format, clone)
|
||||
}
|
||||
|
||||
func TestMPEG4AudioMediaDescription(t *testing.T) {
|
||||
format := &MPEG4Audio{
|
||||
PayloadTyp: 96,
|
||||
|
Reference in New Issue
Block a user