1
0
Fork 0
forked from External/mediamtx

support G711 tracks with multiple channels and custom sample rates (#2891)

This commit is contained in:
Alessandro Ros 2024-01-13 11:40:26 +01:00 committed by GitHub
parent a6c7d287a7
commit 20bb9b90cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 78 additions and 36 deletions

View file

@ -786,7 +786,12 @@ func TestReadTracks(t *testing.T) {
{
"pcma",
nil,
&format.G711{},
&format.G711{
PayloadTyp: 8,
MULaw: false,
SampleRate: 8000,
ChannelCount: 1,
},
[]message.Message{
&message.DataAMF0{
ChunkStreamID: 4,
@ -817,7 +822,10 @@ func TestReadTracks(t *testing.T) {
"pcmu",
nil,
&format.G711{
MULaw: true,
PayloadTyp: 0,
MULaw: true,
SampleRate: 8000,
ChannelCount: 1,
},
[]message.Message{
&message.DataAMF0{