add codec wait

This commit is contained in:
deepch
2021-08-29 13:34:06 +03:00
parent 54128f7cd2
commit 374dbda6f4
4 changed files with 204 additions and 151 deletions

View File

@@ -86,6 +86,7 @@ type RTSPClient struct {
PreVideoTS int64
PreSequenceNumber int
FPS int
WaitCodec bool
}
type RTSPClientOptions struct {
@@ -153,6 +154,7 @@ func Dial(options RTSPClientOptions) (*RTSPClient, error) {
}
} else {
client.CodecData = append(client.CodecData, h264parser.CodecData{})
client.WaitCodec = true
}
client.FPS = i2.FPS
client.videoCodec = av.H264