修改正则表达式

This commit is contained in:
李宇翔
2020-03-11 16:55:51 +08:00
parent 16ed9f64c8
commit 5826c688cd
+2 -2
View File
@@ -23,8 +23,8 @@ var (
)
func init() {
spropReg, _ = regexp.Compile("sprop-parameter-sets=(.+);")
configReg, _ = regexp.Compile("config=(.+)(;|$)")
spropReg, _ = regexp.Compile("sprop-parameter-sets=([^;]+)")
configReg, _ = regexp.Compile("config=([^;]+)")
}
type RtspClient struct {