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
commit 8679fe28f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
}