diff --git a/filter/basic.go b/filter/basic.go index 5cd3aab1..88754913 100644 --- a/filter/basic.go +++ b/filter/basic.go @@ -66,7 +66,7 @@ type Basic struct { } // NewBasicFilter returns a pointer to a new Basic filter struct. -func NewBasicFilter(dst io.WriteCloser, debug bool) *Basic { +func NewBasic(dst io.WriteCloser, debug bool) *Basic { bwImg := image.NewRGBA(image.Rect(0, 0, 0, 0)) var file io.WriteCloser var err error @@ -122,7 +122,8 @@ func (bf *Basic) Write(f []byte) (int, error) { } // Use 4x goroutines to each process one row of pixels. - j := 0 + var j int + j = 0 var wg *sync.WaitGroup for j < bf.h { diff --git a/revid/revid.go b/revid/revid.go index 7fdb3cae..56be81b9 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -349,7 +349,7 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io. case config.FilterDifference: r.filters[i] = filter.NewDifference(dst, r.cfg.ShowWindows, r.cfg.DiffThreshold) case config.FilterBasic: - r.filters[i] = filter.NewBasicFilter(dst, r.cfg.ShowWindows) + r.filters[i] = filter.NewBasic(dst, r.cfg.ShowWindows) default: panic("Undefined Filter") }