RTMP source: fix reading audio track

This commit is contained in:
aler9 2021-04-17 23:48:02 +02:00
parent 5eb6db107f
commit ea6b616759

View File

@ -193,7 +193,7 @@ func (s *Source) runInner() bool {
onFrame := func(trackID int, payload []byte) {
rtcpSenders.OnFrame(trackID, gortsplib.StreamTypeRTP, payload)
res.SP.OnFrame(videoTrack.ID, gortsplib.StreamTypeRTP, payload)
res.SP.OnFrame(trackID, gortsplib.StreamTypeRTP, payload)
}
for {