diff --git a/revid/revid.go b/revid/revid.go index 88415e9f..9839d07d 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -479,14 +479,14 @@ func (r *Revid) Update(vars map[string]string) error { } r.cfg.Input = v case "Saturation": - s, err := strconv.ParseInt(value, 10, 0) + s, err := strconv.Atoi(value) if err != nil { r.cfg.Logger.Log(logger.Warning, pkg+"invalid saturation param", "value", value) break } r.cfg.Saturation = int(s) case "Brightness": - b, err := strconv.ParseUint(value, 10, 0) + b, err := strconv.Atoi(value) if err != nil { r.cfg.Logger.Log(logger.Warning, pkg+"invalid brightness param", "value", value) break @@ -530,7 +530,7 @@ func (r *Revid) Update(vars map[string]string) error { case "RtpAddress": r.cfg.RTPAddress = value case "Bitrate": - v, err := strconv.ParseUint(value, 10, 0) + v, err := strconv.Atoi(value) if err != nil { r.cfg.Logger.Log(logger.Warning, pkg+"invalid framerate param", "value", value) break @@ -541,28 +541,28 @@ func (r *Revid) Update(vars map[string]string) error { case "InputPath": r.cfg.InputPath = value case "Height": - h, err := strconv.ParseUint(value, 10, 0) + h, err := strconv.Atoi(value) if err != nil { r.cfg.Logger.Log(logger.Warning, pkg+"invalid height param", "value", value) break } r.cfg.Height = uint(h) case "Width": - w, err := strconv.ParseUint(value, 10, 0) + w, err := strconv.Atoi(value) if err != nil { r.cfg.Logger.Log(logger.Warning, pkg+"invalid width param", "value", value) break } r.cfg.Width = uint(w) case "FrameRate": - v, err := strconv.ParseUint(value, 10, 0) + v, err := strconv.Atoi(value) if err != nil { r.cfg.Logger.Log(logger.Warning, pkg+"invalid framerate param", "value", value) break } r.cfg.FrameRate = uint(v) case "Rotation": - v, err := strconv.ParseUint(value, 10, 0) + v, err := strconv.Atoi(value) if err != nil || v > 359 { r.cfg.Logger.Log(logger.Warning, pkg+"invalid rotation param", "value", value) break @@ -612,7 +612,7 @@ func (r *Revid) Update(vars map[string]string) error { r.cfg.Logger.Log(logger.Warning, pkg+"invalid VerticalFlip param", "value", value) } case "BurstPeriod": - v, err := strconv.ParseUint(value, 10, 0) + v, err := strconv.Atoi(value) if err != nil { r.cfg.Logger.Log(logger.Warning, pkg+"invalid BurstPeriod param", "value", value) break