diff --git a/client.go b/client.go index 3851a0a..b72591c 100644 --- a/client.go +++ b/client.go @@ -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 {