mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
Merge branch 'v1'
This commit is contained in:
@@ -94,6 +94,28 @@ func TestNewFromMediaDescription(t *testing.T) {
|
||||
ChannelCount: 2,
|
||||
},
|
||||
},
|
||||
{
|
||||
"audio lpcm 16 with no explicit channel",
|
||||
&psdp.MediaDescription{
|
||||
MediaName: psdp.MediaName{
|
||||
Media: "audio",
|
||||
Protos: []string{"RTP", "AVP"},
|
||||
Formats: []string{"97"},
|
||||
},
|
||||
Attributes: []psdp.Attribute{
|
||||
{
|
||||
Key: "rtpmap",
|
||||
Value: "97 L16/16000",
|
||||
},
|
||||
},
|
||||
},
|
||||
&LPCM{
|
||||
PayloadTyp: 97,
|
||||
BitDepth: 16,
|
||||
SampleRate: 16000,
|
||||
ChannelCount: 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
"audio lpcm 24",
|
||||
&psdp.MediaDescription{
|
||||
|
Reference in New Issue
Block a user