make Opus SDP always return 48khz and 2 channels (#204)

RFC7587 mandates 48khz as sample rate and 2 channels inside the SDP.
These values can be dynamically adjusted by the stream, but they must
not be touched inside the SDP.
This commit is contained in:
Alessandro Ros
2023-03-13 22:03:49 +01:00
committed by GitHub
parent 8df5d21c35
commit 13fab2962e
5 changed files with 49 additions and 30 deletions

View File

@@ -296,9 +296,8 @@ func TestNewFromMediaDescription(t *testing.T) {
},
},
&Opus{
PayloadTyp: 96,
SampleRate: 48000,
ChannelCount: 2,
PayloadTyp: 96,
IsStereo: true,
},
},
{