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,
|
Data: aacConfig,
|
||||||
})
|
})
|
||||||
|
|
||||||
c.aacDecoder = rtpaac.NewDecoder(48000)
|
clockRate, _ := audioTrack.ClockRate()
|
||||||
|
c.aacDecoder = rtpaac.NewDecoder(clockRate)
|
||||||
c.audioTrack = audioTrack
|
c.audioTrack = audioTrack
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue