1
0
Fork 0
forked from External/mediamtx

webrtc: fix bad quality when converting Opus from WebRTC to LL-HLS (#2499) (#2740)

This commit is contained in:
Alessandro Ros 2023-11-24 22:07:33 +01:00 committed by GitHub
parent db5ba9903f
commit 81c803ba64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -174,7 +174,7 @@ func (s *Source) Run(params defs.StaticSourceRunParams) error {
Type: description.MediaTypeAudio,
Formats: []format.Format{&format.Opus{
PayloadTyp: 96,
IsStereo: (tcodec.ChannelCount == 2),
IsStereo: (tcodec.ChannelCount >= 2),
}},
}