mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-26 19:51:14 +08:00
修复sps pps vps为空
This commit is contained in:
2
main.go
2
main.go
@@ -169,7 +169,7 @@ func (rtsp *RTSP) setVideoTrack() {
|
||||
} else if rtsp.VSdp.Codec == "H265" {
|
||||
rtsp.RtpVideo = rtsp.NewRTPVideo(12)
|
||||
if len(rtsp.VSdp.VPS) > 0 {
|
||||
rtsp.RtpVideo.PushNalu(VideoPack{NALUs: [][]byte{rtsp.VSdp.VPS, rtsp.ASdp.SPS, rtsp.ASdp.PPS}})
|
||||
rtsp.RtpVideo.PushNalu(VideoPack{NALUs: [][]byte{rtsp.VSdp.VPS, rtsp.VSdp.SPS, rtsp.VSdp.PPS}})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user