mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
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:
@@ -296,9 +296,8 @@ func TestNewFromMediaDescription(t *testing.T) {
|
||||
},
|
||||
},
|
||||
&Opus{
|
||||
PayloadTyp: 96,
|
||||
SampleRate: 48000,
|
||||
ChannelCount: 2,
|
||||
PayloadTyp: 96,
|
||||
IsStereo: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user