add SizeLength and IndexLength
This commit is contained in:
parent
9bb11c6fc4
commit
4a48b5df35
@ -17,6 +17,8 @@ type Info struct {
|
|||||||
Config []byte
|
Config []byte
|
||||||
SpropParameterSets [][]byte
|
SpropParameterSets [][]byte
|
||||||
PayloadType int
|
PayloadType int
|
||||||
|
SizeLength int
|
||||||
|
IndexLength int
|
||||||
}
|
}
|
||||||
|
|
||||||
func Decode(content string) (infos []Info) {
|
func Decode(content string) (infos []Info) {
|
||||||
@ -77,6 +79,10 @@ func Decode(content string) (infos []Info) {
|
|||||||
switch key {
|
switch key {
|
||||||
case "config":
|
case "config":
|
||||||
info.Config, _ = hex.DecodeString(val)
|
info.Config, _ = hex.DecodeString(val)
|
||||||
|
case "sizelength":
|
||||||
|
info.SizeLength, _ = strconv.Atoi(val)
|
||||||
|
case "indexlength":
|
||||||
|
info.IndexLength, _ = strconv.Atoi(val)
|
||||||
case "sprop-parameter-sets":
|
case "sprop-parameter-sets":
|
||||||
fields := strings.Split(val, ",")
|
fields := strings.Split(val, ",")
|
||||||
for _, field := range fields {
|
for _, field := range fields {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user