forked from External/mediamtx
update gortsplib
This commit is contained in:
parent
4049a01d29
commit
a6986e9fa4
8 changed files with 38 additions and 16 deletions
|
|
@ -108,13 +108,18 @@ func (s *hlsSource) runInner() bool {
|
|||
|
||||
if videoTrack != nil {
|
||||
videoTrackID = len(tracks)
|
||||
videoEnc = rtph264.NewEncoder(96, nil, nil, nil)
|
||||
videoEnc = &rtph264.Encoder{PayloadType: 96}
|
||||
videoEnc.Init()
|
||||
tracks = append(tracks, videoTrack)
|
||||
}
|
||||
|
||||
if audioTrack != nil {
|
||||
audioTrackID = len(tracks)
|
||||
audioEnc = rtpaac.NewEncoder(97, audioTrack.ClockRate(), nil, nil, nil)
|
||||
audioEnc = &rtpaac.Encoder{
|
||||
PayloadType: 97,
|
||||
SampleRate: audioTrack.ClockRate(),
|
||||
}
|
||||
audioEnc.Init()
|
||||
tracks = append(tracks, audioTrack)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue