mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-08 15:38:05 +00:00
support sampling rates different than 48khz when reading with RTMP
This commit is contained in:
parent
2382337c07
commit
8b427ba323
@ -277,7 +277,8 @@ func (c *Client) runRead() {
|
||||
Data: aacConfig,
|
||||
})
|
||||
|
||||
c.aacDecoder = rtpaac.NewDecoder(48000)
|
||||
clockRate, _ := audioTrack.ClockRate()
|
||||
c.aacDecoder = rtpaac.NewDecoder(clockRate)
|
||||
c.audioTrack = audioTrack
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user