mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
support multichannel Opus (https://github.com/bluenviron/mediamtx/issues/3355) (#572)
This commit is contained in:
@@ -310,8 +310,9 @@ var casesSession = []struct {
|
||||
IsBackChannel: true,
|
||||
Formats: []format.Format{
|
||||
&format.Opus{
|
||||
PayloadTyp: 111,
|
||||
IsStereo: false,
|
||||
PayloadTyp: 111,
|
||||
IsStereo: false,
|
||||
ChannelCount: 1,
|
||||
},
|
||||
&format.Generic{
|
||||
PayloadTyp: 103,
|
||||
@@ -820,8 +821,9 @@ func TestSessionFindFormat(t *testing.T) {
|
||||
Type: MediaTypeAudio,
|
||||
Formats: []format.Format{
|
||||
&format.Opus{
|
||||
PayloadTyp: 111,
|
||||
IsStereo: true,
|
||||
PayloadTyp: 111,
|
||||
IsStereo: true,
|
||||
ChannelCount: 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user