mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-26 04:52:00 -08:00
support sampling rates different than 48khz when reading with RTMP
This commit is contained in:
parent
2382337c07
commit
8b427ba323
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue