mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-05 07:36:57 +08:00
rtsp source: improve support for AAC tracks with custom parameters
This commit is contained in:
@@ -144,8 +144,11 @@ func (s *rtmpSource) runInner() bool {
|
||||
var aacEncoder *rtpaac.Encoder
|
||||
if audioTrack != nil {
|
||||
aacEncoder = &rtpaac.Encoder{
|
||||
PayloadType: 97,
|
||||
SampleRate: audioTrack.ClockRate(),
|
||||
PayloadType: 97,
|
||||
SampleRate: audioTrack.ClockRate(),
|
||||
SizeLength: 13,
|
||||
IndexLength: 3,
|
||||
IndexDeltaLength: 3,
|
||||
}
|
||||
aacEncoder.Init()
|
||||
audioTrackID = len(tracks)
|
||||
|
Reference in New Issue
Block a user