mirror of https://bitbucket.org/ausocean/av.git
revid/revid.go: Replaced ParseInt with Atoi
This commit is contained in:
parent
8fa9f7df48
commit
6e2dcc4b4d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue