mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
support detecting LPCM formats with payload types 10 and 11 (#496)
This commit is contained in:
@@ -154,6 +154,36 @@ var casesFormat = []struct {
|
||||
"L16/96000/2",
|
||||
nil,
|
||||
},
|
||||
{
|
||||
"audio lpcm 16 rfc3551 stereo",
|
||||
"audio",
|
||||
10,
|
||||
"",
|
||||
nil,
|
||||
&LPCM{
|
||||
PayloadTyp: 10,
|
||||
BitDepth: 16,
|
||||
SampleRate: 44100,
|
||||
ChannelCount: 2,
|
||||
},
|
||||
"L16/44100/2",
|
||||
nil,
|
||||
},
|
||||
{
|
||||
"audio lpcm 16 rfc3551 mono",
|
||||
"audio",
|
||||
11,
|
||||
"",
|
||||
nil,
|
||||
&LPCM{
|
||||
PayloadTyp: 11,
|
||||
BitDepth: 16,
|
||||
SampleRate: 44100,
|
||||
ChannelCount: 1,
|
||||
},
|
||||
"L16/44100/1",
|
||||
nil,
|
||||
},
|
||||
{
|
||||
"audio lpcm 16 with no explicit channel",
|
||||
"audio",
|
||||
|
Reference in New Issue
Block a user