diff --git a/filter/mog.go b/filter/mog.go index cff19d3e..bd916791 100644 --- a/filter/mog.go +++ b/filter/mog.go @@ -83,7 +83,7 @@ func (m *MOGFilter) Write(f []byte) (int, error) { if hfCount < (m.hf - 1) { m.hold[hfCount] = f hfCount++ - return -1, nil + return 0, nil } else { img, err := gocv.IMDecode(f, gocv.IMReadColor) if err != nil {