mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-26 19:51:14 +08:00
修复一个低级错误
This commit is contained in:
@@ -103,7 +103,7 @@ func (rtsp *RTSPClient) PushStream(streamPath string, rtspUrl string) (err error
|
||||
trackId := trackIds
|
||||
switch sub.at.CodecID {
|
||||
case codec.CodecID_PCMA, codec.CodecID_PCMU:
|
||||
atrack := NewG711Track(97, map[byte]string{7: "pcma", 8: "pcmu"}[sub.vt.CodecID])
|
||||
atrack := NewG711Track(97, map[byte]string{7: "pcma", 8: "pcmu"}[sub.at.CodecID])
|
||||
apacketizer := rtp.NewPacketizer(1200, 97, uint32(ssrc), &codecs.G711Payloader{}, rtp.NewFixedSequencer(1), 8000)
|
||||
sub.OnAudio = func(ts uint32, pack *AudioPack) {
|
||||
for _, pack := range apacketizer.Packetize(pack.Raw, (ts-st)*8) {
|
||||
|
Reference in New Issue
Block a user