update gortsplib

This commit is contained in:
aler9
2022-06-23 13:54:48 +02:00
parent 76fb3b8d71
commit ec4c40b222
20 changed files with 265 additions and 149 deletions

View File

@@ -78,9 +78,14 @@ func (p *clientAudioProcessor) doProcess(
if !p.trackInitialized {
p.trackInitialized = true
track, err := gortsplib.NewTrackAAC(96, pkt.Type, pkt.SampleRate, pkt.ChannelCount, nil, 13, 3, 3)
if err != nil {
return err
track := &gortsplib.TrackAAC{
PayloadType: 96,
Type: pkt.Type,
SampleRate: pkt.SampleRate,
ChannelCount: pkt.ChannelCount,
SizeLength: 13,
IndexLength: 3,
IndexDeltaLength: 3,
}
err = p.onTrack(track)