revid: now checking for Packetization var from netreceiver

This commit is contained in:
Saxon 2019-02-25 16:29:44 +10:30
parent b7d1bd17a7
commit 7f2d53e778
1 changed files with 11 additions and 0 deletions

View File

@ -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)
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":
f, err := strconv.ParseUint(value, 10, 0)
if err != nil {