Merge pull request #67 from idcpj/master

fix parse sdp  sprop-parameter-sets
This commit is contained in:
Andrey Semochkin
2022-09-13 08:50:29 +03:00
committed by GitHub

View File

@@ -160,6 +160,9 @@ func Parse(content string) (sess Session, medias []Media) {
case "sprop-parameter-sets":
fields := strings.Split(val, ",")
for _, field := range fields {
if field == "" {
continue
}
val, _ := base64.StdEncoding.DecodeString(field)
media.SpropParameterSets = append(media.SpropParameterSets, val)
}