mirror of https://bitbucket.org/ausocean/av.git
revid: fix incorrect assignment
This commit is contained in:
parent
9d6836f585
commit
b89514847d
|
@ -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!")
|
||||||
|
|
Loading…
Reference in New Issue