mirror of https://bitbucket.org/ausocean/av.git
revid: now checking for Packetization var from netreceiver
This commit is contained in:
parent
b7d1bd17a7
commit
7f2d53e778
|
@ -411,6 +411,17 @@ func (r *Revid) Update(vars map[string]string) error {
|
||||||
r.config.Logger.Log(logger.Warning, pkg+"invalid Output1 param", "value", value)
|
r.config.Logger.Log(logger.Warning, pkg+"invalid Output1 param", "value", value)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case "Packetization":
|
||||||
|
switch value {
|
||||||
|
case "Mpegts":
|
||||||
|
r.config.Packetization = Mpegts
|
||||||
|
case "Flv":
|
||||||
|
r.config.Packetization = Flv
|
||||||
|
default:
|
||||||
|
r.config.Logger.Log(logger.Warning, pkg+"invalid packetization param", "value", value)
|
||||||
|
continue
|
||||||
|
}
|
||||||
case "FramesPerClip":
|
case "FramesPerClip":
|
||||||
f, err := strconv.ParseUint(value, 10, 0)
|
f, err := strconv.ParseUint(value, 10, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue