Browse Source

support sampling rates different than 48khz when reading with RTMP

pull/340/head
aler9 5 years ago
parent
commit
8b427ba323
  1. 3
      internal/clientrtmp/client.go

3
internal/clientrtmp/client.go

@ -277,7 +277,8 @@ func (c *Client) runRead() { @@ -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…
Cancel
Save