revid: fix incorrect assignment

This commit is contained in:
Dan Kortschak 2018-06-13 14:45:03 +09:30
parent 9d6836f585
commit b89514847d
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ func (c *Config) Validate(r *Revid) error {
if c.FramesPerClip == "" { if c.FramesPerClip == "" {
r.Log(Warning, "No FramesPerClip defined defined, defaulting to 1!") r.Log(Warning, "No FramesPerClip defined defined, defaulting to 1!")
c.Width = defaultFramesPerClip c.FramesPerClip = defaultFramesPerClip
} else { } else {
if integer, err := strconv.Atoi(c.FramesPerClip); integer <= 0 || err != nil { if integer, err := strconv.Atoi(c.FramesPerClip); integer <= 0 || err != nil {
return errors.New("Bad width defined in config!") return errors.New("Bad width defined in config!")