support h264 tracks with extradata in sprop-parameter-sets

This commit is contained in:
aler9
2022-01-30 15:46:37 +01:00
committed by Alessandro Ros
parent 5aefa9e271
commit ad69a8957b
11 changed files with 88 additions and 70 deletions

View File

@@ -37,7 +37,7 @@ func main() {
fmt.Println("stream connected")
// create an H264 track
track, err := gortsplib.NewTrackH264(96, sps, pps)
track, err := gortsplib.NewTrackH264(96, sps, pps, nil)
if err != nil {
panic(err)
}