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:
@@ -39,9 +39,8 @@ func main() {
|
||||
medi := &media.Media{
|
||||
Type: media.TypeAudio,
|
||||
Formats: []format.Format{&format.Opus{
|
||||
PayloadTyp: 96,
|
||||
SampleRate: 48000,
|
||||
ChannelCount: 2,
|
||||
PayloadTyp: 96,
|
||||
IsStereo: false,
|
||||
}},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user