support detecting LPCM formats with payload types 10 and 11 (#496)

This commit is contained in:
Alessandro Ros
2024-01-07 13:01:36 +01:00
committed by GitHub
parent 7d30b5f1b7
commit f9eb8e573b
22 changed files with 131 additions and 68 deletions

View File

@@ -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",